From 09e88154d7f2471bf2a6eb8a1e9e5fab52cac7d5 Mon Sep 17 00:00:00 2001
From: unknown <istruewing@stella.local>
Date: Sat, 10 Nov 2007 14:36:25 +0100
Subject: [PATCH] Bug#31210 - INSERT DELAYED crashes server when used on       
      partitioned table

Post-merge fix

A new need for lex initialization arose.


sql/ha_ndbcluster.cc:
  Bug#31210 - INSERT DELAYED crashes server when used on
              partitioned table
  Initialized lex for later use in open_table().
---
 sql/ha_ndbcluster.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index 436710e3dee..bf2b19bfc9c 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -9073,6 +9073,7 @@ pthread_handler_t ndb_util_thread_func(void *arg __attribute__((unused)))
   thd->thread_stack= (char*)&thd; /* remember where our stack is */
   if (thd->store_globals())
     goto ndb_util_thread_fail;
+  lex_start(thd);
   thd->init_for_queries();
   thd->version=refresh_version;
   thd->main_security_ctx.host_or_ip= "";
-- 
2.30.9