Permalink
Browse files

Forgot to update the example for sqlite_queryResult in the documentat…

…ion.
  • Loading branch information...
1 parent 23d5389 commit f41fec7804a140c43a9e1d889ea9a6fff8cdd3ca @kwollaston committed Mar 17, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 Doc/sphinx/scriptref/sqlite.rst
View
4 Doc/sphinx/scriptref/sqlite.rst
@@ -132,7 +132,9 @@ If an error occurred during the query, the error boolean will be set to true. Ot
.. code-block:: pascal
- sqlite_queryValue(DB, 'SELECT * FROM test;', Results);
+ Results := sqlite_queryResult(DB, 'SELECT * FROM test;', error);
+ if error then
+ [...] // do your error handling here...
Writeln(Results); // Should output [['id', 'name'], ['1', 'Sex']]
sqlite_escape

0 comments on commit f41fec7

Please sign in to comment.