From f4ffc7cfd64bf163c1015e519b286594f4dd9c48 Mon Sep 17 00:00:00 2001 From: Cosmin Apreuetsei Date: Wed, 17 Sep 2014 20:54:28 +0300 Subject: [PATCH] unimportant --- mysql.lua | 4 +++- mysql.md | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mysql.lua b/mysql.lua index 951ec54..eef1b81 100644 --- a/mysql.lua +++ b/mysql.lua @@ -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 diff --git a/mysql.md b/mysql.md index 6646298..e08d6ba 100644 --- a/mysql.md +++ b/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. * 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: