Cast field data when ATTR_EMULATE_PREPARES is enabled
This commit is contained in:
@@ -776,6 +776,18 @@ class DBA
|
||||
return DI::dba()->toArray($stmt, $do_close);
|
||||
}
|
||||
|
||||
/**
|
||||
* Cast field types according to the table definition
|
||||
*
|
||||
* @param string $table
|
||||
* @param array $fields
|
||||
* @return array casted fields
|
||||
*/
|
||||
public static function castFields(string $table, array $fields)
|
||||
{
|
||||
return DI::dba()->castFields($table, $fields);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the error number of the last query
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user