applied ilia's patch for binary columns (mysql returns varchar(#) binary)

This commit is contained in:
Ralf Becker 2003-10-07 16:41:00 +00:00
parent 49d4216305
commit 4c922ae28a

View File

@ -222,7 +222,7 @@
/* The rest of this is used only for SQL->array */ /* The rest of this is used only for SQL->array */
$colinfo = explode('(',$oProc->m_odb->f(1)); $colinfo = explode('(',$oProc->m_odb->f(1));
$prec = ereg_replace(')','',$colinfo[1]); $prec = ereg_replace(').*','',$colinfo[1]);
$scales = explode(',',$prec); $scales = explode(',',$prec);
if($colinfo[0] == 'enum') if($colinfo[0] == 'enum')