1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00
unknown 9bd3b8545a Bug#32757: hang with sql_mode set when setting some global variables
If setting a system-variable provided by a plug-in failed, no OK or
error was sent in some cases, hanging the client. We now send an error
in the case from the ticket (integer-argument out of range in STRICT
mode). We also provide a semi-generic fallback message for possible
future cases like this where an error is signalled, but no message is
sent to the client. The error/warning handling is unified so it's the
same again for variables provided by plugins and those in the server
proper.


mysql-test/r/plugin.result:
  show that on out-of-range values, plugin interface throws errors
  in STRICT mode and warnings otherwise.
mysql-test/t/plugin.test:
  show that on out-of-range values, plugin interface throws errors
  in STRICT mode and warnings otherwise.
sql/set_var.cc:
  - handle signedness of values used in warnings
  - in STRICT mode, throw errors rather than warnings
sql/sql_parse.cc:
  If sql_set_variables() returns with an error but no message
  was sent to the client, send a semi-generic one so the session
  won't hang and we won't fail silently.
sql/sql_plugin.cc:
  throw a warning if more than just block-size was corrected
  (or an error in STRICT mode). use functions from set_var
  for uniform behaviour of server- and plug-in variables.
storage/example/ha_example.cc:
  Add a ULONG system variable to example plugin so
  we can test integers in the plugin-interface without
  having to depend on the presence of innobase.
2008-02-24 14:12:17 +01:00
..
2007-03-15 23:39:07 -07:00
2007-08-16 21:14:47 +04:00
2007-03-20 17:07:53 +01:00
2007-08-15 17:43:08 +04:00
2008-01-10 20:44:23 +03:00
2007-10-08 20:55:44 +02:00
2007-11-06 21:57:51 +03:00
2007-04-13 19:23:02 +02:00
2007-02-23 13:13:55 +02:00
2007-12-21 13:13:22 +01:00
2007-06-10 14:43:57 +04:00
2007-08-15 17:43:08 +04:00
2007-08-15 17:43:08 +04:00
2007-10-30 13:49:42 +02:00
2007-06-12 18:41:56 +03:00
2007-07-01 15:33:28 -07:00