mirror of
https://github.com/luapower/mysql.git
synced 2025-02-09 00:30:31 +01:00
unimportant
This commit is contained in:
parent
439f6bc64f
commit
f4ffc7cfd6
@ -235,7 +235,9 @@ end
|
|||||||
|
|
||||||
function conn.commit(mysql) checkz(mysql, C.mysql_commit(mysql)) 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.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
|
--queries
|
||||||
|
|
||||||
|
5
mysql.md
5
mysql.md
@ -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.
|
* `"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.
|
* 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.
|
* 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 "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.
|
* 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:
|
* if `mode` does not specify `"s"`, the following conversions are applied on the returned values:
|
||||||
|
Loading…
Reference in New Issue
Block a user