Skip to content

Commit

Permalink
handle binary type
Browse files Browse the repository at this point in the history
  • Loading branch information
roojs committed Jul 10, 2024
1 parent 2325d47 commit 8dfaf39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PDO/DataObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -3822,7 +3822,7 @@ function tableColumns()
* @param string optional set the key
* @param ... optional set more keys
* @access public
* @return array
* @return array , eg. array( 'id' => N )
*/
function keys()
{
Expand Down
3 changes: 3 additions & 0 deletions PDO/DataObject/Generator/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ function __construct($table,$def_ar)
case 'INTEGER[]': // postgres type
case 'BOOLEAN[]': // postgres type



case 'TIMESTAMP WITH TIME ZONE': // pgsql -- might need another 'type' to handle this correctly..

$type = PDO_DataObject::STR;
Expand All @@ -224,6 +226,7 @@ function __construct($table,$def_ar)
case 'LONGTEXT':
case '_TEXT': //postgres (?? view ??)
case 'TEXT[]': // postgres type
case 'BINARY': // not really - but not got any better ides.

$type = PDO_DataObject::STR + PDO_DataObject::TXT;
break;
Expand Down

0 comments on commit 8dfaf39

Please sign in to comment.