Menu

#33 PHP Warning: Error: CLIENT, -2005, Unknown column type

open
nobody
None
5
2011-12-10
2011-12-10
Jira Trac
No

CUBRID PHP API provides [cubrid_column_types()|http://php.net/manual/en/function.cubrid-column-types.php] function. When given a request identifier, it returns either an *Array* of string which containing column types, when process is successful, or *FALSE*, when process is unsuccessful.

If the query executed was

{code}
select count(*) as count from db_serial where name='xe_sequence'
{code}

The function throws an exception *PHP Warning: Error: CLIENT, -2005, Unknown column type*.

It's clear that *count* doesn't have column type defined, but the driver should understand and return the suitable data type such as integer.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.