@@ -5580,7 +5580,7 @@ int ha_ndbcluster::create(const char *name,
55805580 if (share && !do_event_op)
55815581 share->flags |= NSF_NO_BINLOG;
55825582 ndbcluster_log_schema_op (thd, share,
5583- thd->query , thd->query_length ,
5583+ thd->query () , thd->query_length () ,
55845584 share->db , share->table_name ,
55855585 m_table->getObjectId (),
55865586 m_table->getObjectVersion (),
@@ -6022,7 +6022,8 @@ int ha_ndbcluster::rename_table(const char *from, const char *to)
60226022 */
60236023 if (!is_old_table_tmpfile)
60246024 ndbcluster_log_schema_op (current_thd, share,
6025- current_thd->query , current_thd->query_length ,
6025+ current_thd->query (),
6026+ current_thd->query_length (),
60266027 old_dbname, m_tabname,
60276028 ndb_table_id, ndb_table_version,
60286029 SOT_RENAME_TABLE,
@@ -6217,7 +6218,7 @@ ha_ndbcluster::delete_table(ha_ndbcluster *h, Ndb *ndb,
62176218 current_thd->lex ->sql_command != SQLCOM_TRUNCATE)
62186219 {
62196220 ndbcluster_log_schema_op (thd, share,
6220- thd->query , thd->query_length ,
6221+ thd->query () , thd->query_length () ,
62216222 share->db , share->table_name ,
62226223 ndb_table_id, ndb_table_version,
62236224 SOT_DROP_TABLE, 0 , 0 , 1 );
@@ -6939,7 +6940,7 @@ static void ndbcluster_drop_database(handlerton *hton, char *path)
69396940 THD *thd= current_thd;
69406941 ha_ndbcluster::set_dbname (path, db);
69416942 ndbcluster_log_schema_op (thd, 0 ,
6942- thd->query , thd->query_length ,
6943+ thd->query () , thd->query_length () ,
69436944 db, " " , 0 , 0 , SOT_DROP_DB, 0 , 0 , 0 );
69446945#endif
69456946 DBUG_VOID_RETURN;
@@ -10348,13 +10349,13 @@ int ndbcluster_alter_tablespace(handlerton *hton,
1034810349#ifdef HAVE_NDB_BINLOG
1034910350 if (is_tablespace)
1035010351 ndbcluster_log_schema_op (thd, 0 ,
10351- thd->query , thd->query_length ,
10352+ thd->query () , thd->query_length () ,
1035210353 " " , alter_info->tablespace_name ,
1035310354 0 , 0 ,
1035410355 SOT_TABLESPACE, 0 , 0 , 0 );
1035510356 else
1035610357 ndbcluster_log_schema_op (thd, 0 ,
10357- thd->query , thd->query_length ,
10358+ thd->query () , thd->query_length () ,
1035810359 " " , alter_info->logfile_group_name ,
1035910360 0 , 0 ,
1036010361 SOT_LOGFILE_GROUP, 0 , 0 , 0 );
0 commit comments