Class DB IO: multiple insert returning now works
If an INSERT had multiple inserts (values) the returning only returned the first one and never the other ones. This is fxed now. If only ONE. then insert_id is scalar, else it is an array with all the data in a flat array
This commit is contained in:
@@ -160,6 +160,15 @@
|
||||
return pg_fetch_array($cursor);
|
||||
}
|
||||
|
||||
// METHOD: _db_fetch_all
|
||||
// PARAMS: cursor
|
||||
// RETURN: all rows as array
|
||||
// DESC : wrapper for pg_fetch_array
|
||||
public function _db_fetch_all($cursor)
|
||||
{
|
||||
return pg_fetch_all($cursor);
|
||||
}
|
||||
|
||||
// METHOD: _db_affected_ros
|
||||
// PARAMS: cursor
|
||||
// RETURN: number for rows
|
||||
|
||||
Reference in New Issue
Block a user