cfe594bd42
SQL API: fix prepared statements with FLOAT/DOUBLE type arguments
...
SQL API failed to prepare correctly SQL statements containing floating
point arguments.
2021-03-25 21:20:15 +03:00
b017a998ef
Fix GH-282: Mysql's fetch_row() is broken
...
Fix both MySQL and PostgreSQL drivers to return an error when
fetch_row() is called after retrieving all rows in the result set.
2018-12-16 17:21:39 +03:00
0d0d214266
Fix GH-220: Testsuite api_sql_mysql.t failed ...
...
api_sql_mysql.t failed if SBTEST_MYSQL_ARGS included an explicit
specification of '--mysql-socket', in which case ignores --mysql-host
and asssumes 'localhost'.
2018-04-03 13:46:19 +03:00
7b383cc537
Don't fail when query_row() is called with an empty SELECT.
2018-03-23 19:13:52 +03:00
89e37ba6f7
Don't crash when SQL bulk insert API calls are used out of order.
2018-03-21 22:43:08 +03:00
6972814378
Replace custom data inspection code in regression tests with inspect.lua.
2017-12-24 11:48:29 +03:00
40c14789aa
Export mysql_drv_reconnect() to Lua SQL API.
2017-02-02 10:59:51 +03:00
7f56e219f7
Rename --num-threads to --threads.
...
Accept the old name with a warning for compatibility.
2017-02-01 17:42:39 +03:00
788fcbb30b
Rename --max-requests to --events, --max-time to --time.
...
Print warnings if old names are used, but accept them for compatibility.
2017-02-01 17:20:22 +03:00
45e219d038
Change the command line syntax: remove the --test option.
2017-01-25 00:02:59 +03:00
deb4994144
Fix prepared statements for PostgreSQL driver.
...
libpq requires zero-terminated strings for text arguments.
2017-01-23 22:51:58 +03:00
48ea461dd3
Re-enable api_sql_pgsql.t.
2017-01-23 10:12:39 +03:00
29c0299aef
Convert OLTP scripts to prepared statements.
2017-01-23 03:32:27 +03:00
7ddab2dcff
Fix api_sql_mysql.t to work with older MySQL versions.
2017-01-21 17:19:59 +03:00
cdabf72b7b
Implement customer error hooks.
...
If a Lua script defines the sysbench.hooks.sql_error_ignorable function,
sysbench calls it whenever an SQL error occurs and passes information
about connection, failed query, SQL error number, state and message as
arguments. If the function returns true, the error is ignored and the
entire event is restarted. Otherwise sysbench aborts scripts execution.
2017-01-21 16:58:38 +03:00
dbb7bbfcd1
Implement error propagation.
...
SQL query errors can now be propagated to Lua scripts. This is a
prerequisite for custom error hooks.
2017-01-20 02:43:08 +03:00
5e7d79b49f
Fixes #13 : Export db_fetch_row
...
Add support for result set retrieving for MySQL and PostgreSQL drivers
and export it to the new Lua SQL API.
2017-01-17 22:58:18 +03:00