Home » Database » DB_DataObject » Bug #4182
mysql blob support
Details
| Request #4182 | mysql blob support |
|---|---|
| Submitted | 2005-04-19 16:59 UTC |
| From | therion_5 at hotmail dot com |
| Assigned | alan_k |
| Status | Closed |
| Package | DB_DataObject |
| PHP Version | 4.3.10 |
| OS | any |
| Roadmaps | (Not assigned) |
Comments
[2005-04-19 16:59 UTC] therion_5 at hotmail dot com
Description:
------------
blob data can be escaped by one of following calls:
- mysql_escape_string
- mysql_real_escape_string
[2005-04-20 07:13 UTC] therion_5 at hotmail dot com
Here is patch. Sorry can't give you diff, coz i'm still on old version (waiting for multiple db patch)
Cast.php
// ...
function toStringFromString(...) {
// ...
switch($db)
{
// ...
case 'mysql':
return "'".mysql_escape_string($this->value)."'";
// ...
}
// ...
}
function toStringFromBlob(...){
// ...
switch($db)
{
// ...
case 'mysql':
return "'".mysql_escape_string($this->value)."'";
// ...
}
// ...
}
// ...