unimportant

This commit is contained in:
Cosmin Apreuetsei 2014-09-17 20:54:28 +03:00
parent 439f6bc64f
commit f4ffc7cfd6
2 changed files with 7 additions and 2 deletions

View File

@ -235,7 +235,9 @@ end
function conn.commit(mysql) checkz(mysql, C.mysql_commit(mysql)) end
function conn.rollback(mysql) checkz(mysql, C.mysql_rollback(mysql)) end
function conn.set_autocommit(mysql, yes) checkz(mysql, C.mysql_autocommit(mysql, yes == nil or yes)) end
function conn.set_autocommit(mysql, yes)
checkz(mysql, C.mysql_autocommit(mysql, yes == nil or yes))
end
--queries

View File

@ -222,7 +222,10 @@ Fetch and return the next row of values from the current result set. Returns nil
* `"s"` - do not convert numeric and time values to Lua types.
* the `row_t` arg is an optional table to store the row values in, instead of creating a new one on each fetch.
* options "a" and "n" can be combined to get a table with both numeric and field name indices.
* if `mode` is missing or if neither "a" nor "n" is specified, the values are returned to the caller unpacked, after a first value that is always true, to make it easy to distinguish between a valid `NULL` value in the first column and eof.
* if `mode` is missing or if neither "a" nor "n" is specified, the values
are returned to the caller unpacked, after a first value that is always
true, to make it easy to distinguish between a valid `NULL` value in the
first column and eof.
* in "n" mode, the result table may contain `nil` values so `#row_t` and `ipairs(row_t)` are out; instead iterate from 1 to `result:field_count()`.
* in "a" mode, for fields with duplicate names only the last field will be present.
* if `mode` does not specify `"s"`, the following conversions are applied on the returned values: