Skip to content

Commit ccfa9c6

Browse files
committed
doc: renamed the "est_nrows" argument to "nrows".
1 parent 51200f7 commit ccfa9c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ read_result
274274
-----------
275275
`syntax: res, err, errno, sqlstate = db:read_result()`
276276

277-
`syntax: res, err, errno, sqlstate = db:read_result(est_nrows)`
277+
`syntax: res, err, errno, sqlstate = db:read_result(nrows)`
278278

279279
Reads in one result returned from the MySQL server.
280280

@@ -305,7 +305,7 @@ If more results are following the current result, a second `err` return value wi
305305

306306
In case of errors, this method returns at most 4 values: `nil`, `err`, `errcode`, and `sqlstate`. The `err` return value contains a string describing the error, the `errcode` return value holds the MySQL error code (a numerical value), and finally, the `sqlstate` return value contains the standard SQL error code that consists of 5 characters. Note that, the `errcode` and `sqlstate` might be `nil` if MySQL does not return them.
307307

308-
The optional argument `est_nrows` can be used to specify an approximate number of rows for the result set. This value can be used
308+
The optional argument `nrows` can be used to specify an approximate number of rows for the result set. This value can be used
309309
to pre-allocate space in the resulting Lua table for the result set. By default, it takes the value 4.
310310

311311
[Back to TOC](#table-of-contents)
@@ -314,7 +314,7 @@ query
314314
-----
315315
`syntax: res, err, errcode, sqlstate = db:query(query)`
316316

317-
`syntax: res, err, errcode, sqlstate = db:query(query, est_nrows)`
317+
`syntax: res, err, errcode, sqlstate = db:query(query, nrows)`
318318

319319
This is a shortcut for combining the [send_query](#send_query) call and the first [read_result](#read_result) call.
320320

0 commit comments

Comments
 (0)