mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
e9166ca152
The issue was that we didn't always check result of ha_rnd_init() which caused a problem for handlers that returned an error in this code. - Changed prototype of ha_rnd_init() to ensure that we get a compile warning if result is not checked. - Added ha_rnd_init_with_error() that prints error on failure. - Checked all usage of ha_rnd_init() and ensure we generate an error message on failures. - Changed init_read_record() to return 1 on failure. sql/create_options.cc: Fixed wrong printf sql/event_db_repository.cc: Check result from init_read_record() sql/events.cc: Check result from init_read_record() sql/filesort.cc: Check result from ha_rnd_init() sql/ha_partition.cc: Check result from ha_rnd_init() sql/ha_partition.h: Fixed compiler warning sql/handler.cc: Added ha_rnd_init_with_error() Check result from ha_rnd_init() sql/handler.h: Added ha_rnd_init_with_error() Changed prototype of ha_rnd_init() to ensure that we get a compile warning if result is not checked sql/item_subselect.cc: Check result from ha_rnd_init() sql/log.cc: Check result from ha_rnd_init() sql/log_event.cc: Check result from ha_rnd_init() sql/log_event_old.cc: Check result from ha_rnd_init() sql/mysql_priv.h: init_read_record() now returns error code on failure sql/opt_range.cc: Check result from ha_rnd_init() sql/records.cc: init_read_record() now returns error code on failure Check result from ha_rnd_init() sql/sql_acl.cc: Check result from init_read_record() sql/sql_cursor.cc: Print error if ha_rnd_init() fails sql/sql_delete.cc: Check result from init_read_record() sql/sql_help.cc: Check result from init_read_record() sql/sql_plugin.cc: Check result from init_read_record() sql/sql_select.cc: Check result from ha_rnd_init() Print error if ha_rnd_init() fails. sql/sql_servers.cc: Check result from init_read_record() sql/sql_table.cc: Check result from init_read_record() sql/sql_udf.cc: Check result from init_read_record() sql/sql_update.cc: Check result from init_read_record() storage/example/ha_example.cc: Don't return error on rnd_init() storage/ibmdb2i/ha_ibmdb2i.cc: Removed not relevant comment |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
db2i_blobCollection.cc | ||
db2i_blobCollection.h | ||
db2i_charsetSupport.cc | ||
db2i_charsetSupport.h | ||
db2i_collationSupport.cc | ||
db2i_collationSupport.h | ||
db2i_constraints.cc | ||
db2i_conversion.cc | ||
db2i_errors.cc | ||
db2i_errors.h | ||
db2i_file.cc | ||
db2i_file.h | ||
db2i_global.h | ||
db2i_iconv.h | ||
db2i_ileBridge.cc | ||
db2i_ileBridge.h | ||
db2i_ioBuffers.cc | ||
db2i_ioBuffers.h | ||
db2i_misc.h | ||
db2i_myconv.cc | ||
db2i_myconv.h | ||
db2i_rir.cc | ||
db2i_safeString.h | ||
db2i_sqlStatementStream.cc | ||
db2i_sqlStatementStream.h | ||
db2i_validatedPointer.h | ||
ha_ibmdb2i.cc | ||
ha_ibmdb2i.h | ||
Makefile.am | ||
plug.in |