Skip to content

Instantly share code, notes, and snippets.

@abg
Last active August 29, 2015 14:11
Show Gist options
  • Save abg/56f727da401f0948b65d to your computer and use it in GitHub Desktop.
Save abg/56f727da401f0948b65d to your computer and use it in GitHub Desktop.
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -17158,6 +17158,11 @@ ib_warn_row_too_big(const dict_table_t* table)
THD* thd = current_thd;
+ /* If current_thd is NULL, don't send a warning to the client */
+ if(thd == NULL) {
+ return;
+ }
+
push_warning_printf(
thd, Sql_condition::WARN_LEVEL_WARN, HA_ERR_TO_BIG_ROW,
"Row size too large (> %lu). Changing some columns to TEXT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment