Skip to content

Commit

Permalink
Dev Backported patch - BYTEA fields (Postgres) not properly being sav…
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Nov 23, 2012
1 parent a0a0e93 commit 0353164
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions framework/db/CDbConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ public function getPdoType($type)
'boolean'=>PDO::PARAM_BOOL,
'integer'=>PDO::PARAM_INT,
'string'=>PDO::PARAM_STR,
'resource'=>PDO::PARAM_LOB,
'NULL'=>PDO::PARAM_NULL,
);
return isset($map[$type]) ? $map[$type] : PDO::PARAM_STR;
Expand Down
1 change: 1 addition & 0 deletions framework/yiilite.php
Original file line number Diff line number Diff line change
Expand Up @@ -8039,6 +8039,7 @@ public function getPdoType($type)
'boolean'=>PDO::PARAM_BOOL,
'integer'=>PDO::PARAM_INT,
'string'=>PDO::PARAM_STR,
'resource'=>PDO::PARAM_LOB,
'NULL'=>PDO::PARAM_NULL,
);
return isset($map[$type]) ? $map[$type] : PDO::PARAM_STR;
Expand Down

0 comments on commit 0353164

Please sign in to comment.