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:
Clemens Schwaighofer
2017-03-14 13:33:04 +09:00
parent 2a2221af31
commit d7a6abd5b9
3 changed files with 58 additions and 16 deletions

View File

@@ -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