Commit 3648bf36 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Database.php: fixed wrong description.

parent 1f3f6c4e
......@@ -129,7 +129,7 @@ class Database {
* ROW_IMPLODE_ALL: Return string. All cells of all rows imploded to one string.
* ROW_EXPECT_0: Return empty string if there is no record row, Else an exception.
* ROW_EXPECT_1: Return 1-dimensional assoc array if there are exact one row. Else an exception.
* ROW_EXPECT_0_1: Return empty string if there is no row. Return 1- dimensional assoc array if there is one row. Else an exception.
* ROW_EXPECT_0_1: Return empty array if there is no row. Return 1-dimensional assoc array if there is one row. Else an exception.
* ROW_EXPECT_GE_1: Like 'ROW_REGULAR'. Throws an exception if there is an empty resultset.
* ROW_KEYS: Return 2-dimensional num(!) array. Every query row is one array row. $keys are the column names.
*
......@@ -140,9 +140,7 @@ class Database {
* @param array $keys
* @param array $stat DB_NUM_ROWS | DB_INSERT_ID | DB_AFFECTED_ROWS
* @return array|int
* SELECT | SHOW | DESCRIBE | EXPLAIN:
* If no record found: a) ROW_EXPECT_0_1, ROW_EXPECT_1: empty string, b) All other modes: empty array
* If record(s) found: a) ROW_EXPECT_0_1, ROW_EXPECT_1: one dimensional array, b) All other modes: 2 dimensional array
* SELECT | SHOW | DESCRIBE | EXPLAIN: see $mode
* INSERT: last_insert_id
* UPDATE | DELETE | REPLACE: affected rows
* @throws \qfq\CodeException
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment