Bug #46904 wrong or strange export of Routine
Description:
I have some troubles exporting Routines:
this is a simple Routine in the editor:
-- --------------------------------------------------------------------------------
-- Routine DDL
-- --------------------------------------------------------------------------------
DELIMITER //
CREATE PROCEDURE `mydb`.`routine1` ()
BEGIN
DECLARE var1 INT;
END;
//
first, when I put a semi colon after END and press return, I see the following
Le informazioni su come richiamare il debug JIT (Just-In-Time) anziché questa finestra
sono riportate in fondo al messaggio.
************** Testo dell'eccezione **************
System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.
in ScintillaNet.ManagedRange.Dispose()
in ScintillaNet.Scintilla.OnBeforeTextDelete(TextModifiedEventArgs e)
in ScintillaNet.Scintilla.FireModified(NativeScintillaEventArgs ea)
in ScintillaNet.Scintilla.WndProc(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Assembly caricati **************
mscorlib
Versione assembly: 2.0.0.0
Versione Win32: 2.0.50727.3074 (QFE.050727-3000)
Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
MySQLWorkbench
Versione assembly: 5.1.17.4302
Versione Win32: 5.1.17.4302
Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/MySQLWorkbench.exe
----------------------------------------
wbprivate.wr
Versione assembly: 0.0.0.0
Versione Win32:
Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/wbprivate.wr.DLL
----------------------------------------
wbpublic.wr
Versione assembly: 0.0.0.0
Versione Win32:
Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/wbpublic.wr.DLL
----------------------------------------
System.Windows.Forms
Versione assembly: 2.0.0.0
Versione Win32: 2.0.50727.3053 (netfxsp.050727-3000)
Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Versione assembly: 2.0.0.0
Versione Win32: 2.0.50727.3053 (netfxsp.050727-3000)
Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Versione assembly: 2.0.0.0
Versione Win32: 2.0.50727.3053 (netfxsp.050727-3000)
Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
MySQLCsUtilities
Versione assembly: 1.0.0.0
Versione Win32: 1.0.0.0
Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/MySQLCsUtilities.DLL
----------------------------------------
msvcm90
Versione assembly: 9.0.21022.8
Versione Win32: 9.00.21022.8
Base di codice: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91/msvcm90.dll
----------------------------------------
MySQLGrtShell
Versione assembly: 1.0.0.0
Versione Win32: 1.0.0.0
Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/MySQLGrtShell.EXE
----------------------------------------
WeifenLuo.WinFormsUI.Docking
Versione assembly: 2.2.3513.631
Versione Win32: 2.2.0.0
Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/WeifenLuo.WinFormsUI.Docking.DLL
----------------------------------------
WbPlugins
Versione assembly: 1.0.0.0
Versione Win32: 1.0.0.0
Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/WbPlugins.DLL
----------------------------------------
Aga.Controls
Versione assembly: 1.6.0.0
Versione Win32: 1.6.0.0
Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/Aga.Controls.DLL
----------------------------------------
System.Windows.Forms.resources
Versione assembly: 2.0.0.0
Versione Win32: 2.0.50727.3053 (netfxsp.050727-3000)
Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
grt.db.fe
Versione assembly: 1.0.0.0
Versione Win32: 1.0.0.0
Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/grt.db.fe.DLL
----------------------------------------
mscorlib.resources
Versione assembly: 2.0.0.0
Versione Win32: 2.0.50727.3074 (QFE.050727-3000)
Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
grt.helpers.be
Versione assembly: 1.0.0.0
Versione Win32: 1.0.0.0
Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/grt.helpers.be.DLL
----------------------------------------
db.mysql.editors.wbp.fe
Versione assembly: 1.0.0.0
Versione Win32: 1.0.0.0
Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/db.mysql.editors.wbp.fe.DLL
----------------------------------------
db.mysql.editors.wbp.wr
Versione assembly: 0.0.0.0
Versione Win32:
Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/db.mysql.editors.wbp.wr.DLL
----------------------------------------
sqlide.fe
Versione assembly: 0.0.0.0
Versione Win32: 0.0.0.0
Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/sqlide.fe.DLL
----------------------------------------
ScintillaNet
Versione assembly: 2.0.3513.894
Versione Win32: 2.0.0.0
Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/ScintillaNet.DLL
----------------------------------------
System.Xml
Versione assembly: 2.0.0.0
Versione Win32: 2.0.50727.3074 (QFE.050727-3000)
Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
************** Debug JIT **************
Per attivare il debug JIT, è necessario impostare il valore
jitDebugging nella sezione system.windows.forms del file di configurazione
dell'applicazione o del computer (machine.config).
L'applicazione inoltre deve essere compilata con il debug
attivato.
Ad esempio:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
Quando il debug JIT è attivato, tutte le eccezioni non gestite
vengono inviate al debugger JIT registrato nel computer,
anziché essere gestite da questa finestra di dialogo.
if I export w Forward eng, I got this text
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL';
CREATE SCHEMA IF NOT EXISTS `mydb` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci ;
USE `mydb`;
DELIMITER //
//
USE mydb//
CREATE PROCEDURE `mydb`.`routine1` ()
BEGIN
DECLARE var1 INT;
END;
//
DELIMITER ;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
please note // after DELIMITER //
also, there is no way to delete blank line between DECLARE and USE
with more complex code, and exporting also triggers and tables, I got several random DELIMITER// and DELIMITER; without sense...
thx
How to repeat:
see above...
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.046 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: I have some troubles exporting Routines: this is a simple Routine in the editor: -- -------------------------------------------------------------------------------- -- Routine DDL -- -------------------------------------------------------------------------------- DELIMITER // CREATE PROCEDURE `mydb`.`routine1` () BEGIN DECLARE var1 INT; END; // first, when I put a semi colon after END and press return, I see the following Le informazioni su come richiamare il debug JIT (Just-In-Time) anziché questa finestra sono riportate in fondo al messaggio. ************** Testo dell'eccezione ************** System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto. in ScintillaNet.ManagedRange.Dispose() in ScintillaNet.Scintilla.OnBeforeTextDelete(TextModifiedEventArgs e) in ScintillaNet.Scintilla.FireModified(NativeScintillaEventArgs ea) in ScintillaNet.Scintilla.WndProc(Message& m) in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Assembly caricati ************** mscorlib Versione assembly: 2.0.0.0 Versione Win32: 2.0.50727.3074 (QFE.050727-3000) Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- MySQLWorkbench Versione assembly: 5.1.17.4302 Versione Win32: 5.1.17.4302 Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/MySQLWorkbench.exe ---------------------------------------- wbprivate.wr Versione assembly: 0.0.0.0 Versione Win32: Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/wbprivate.wr.DLL ---------------------------------------- wbpublic.wr Versione assembly: 0.0.0.0 Versione Win32: Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/wbpublic.wr.DLL ---------------------------------------- System.Windows.Forms Versione assembly: 2.0.0.0 Versione Win32: 2.0.50727.3053 (netfxsp.050727-3000) Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System Versione assembly: 2.0.0.0 Versione Win32: 2.0.50727.3053 (netfxsp.050727-3000) Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Drawing Versione assembly: 2.0.0.0 Versione Win32: 2.0.50727.3053 (netfxsp.050727-3000) Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- MySQLCsUtilities Versione assembly: 1.0.0.0 Versione Win32: 1.0.0.0 Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/MySQLCsUtilities.DLL ---------------------------------------- msvcm90 Versione assembly: 9.0.21022.8 Versione Win32: 9.00.21022.8 Base di codice: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91/msvcm90.dll ---------------------------------------- MySQLGrtShell Versione assembly: 1.0.0.0 Versione Win32: 1.0.0.0 Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/MySQLGrtShell.EXE ---------------------------------------- WeifenLuo.WinFormsUI.Docking Versione assembly: 2.2.3513.631 Versione Win32: 2.2.0.0 Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/WeifenLuo.WinFormsUI.Docking.DLL ---------------------------------------- WbPlugins Versione assembly: 1.0.0.0 Versione Win32: 1.0.0.0 Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/WbPlugins.DLL ---------------------------------------- Aga.Controls Versione assembly: 1.6.0.0 Versione Win32: 1.6.0.0 Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/Aga.Controls.DLL ---------------------------------------- System.Windows.Forms.resources Versione assembly: 2.0.0.0 Versione Win32: 2.0.50727.3053 (netfxsp.050727-3000) Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll ---------------------------------------- grt.db.fe Versione assembly: 1.0.0.0 Versione Win32: 1.0.0.0 Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/grt.db.fe.DLL ---------------------------------------- mscorlib.resources Versione assembly: 2.0.0.0 Versione Win32: 2.0.50727.3074 (QFE.050727-3000) Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- grt.helpers.be Versione assembly: 1.0.0.0 Versione Win32: 1.0.0.0 Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/grt.helpers.be.DLL ---------------------------------------- db.mysql.editors.wbp.fe Versione assembly: 1.0.0.0 Versione Win32: 1.0.0.0 Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/db.mysql.editors.wbp.fe.DLL ---------------------------------------- db.mysql.editors.wbp.wr Versione assembly: 0.0.0.0 Versione Win32: Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/db.mysql.editors.wbp.wr.DLL ---------------------------------------- sqlide.fe Versione assembly: 0.0.0.0 Versione Win32: 0.0.0.0 Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/sqlide.fe.DLL ---------------------------------------- ScintillaNet Versione assembly: 2.0.3513.894 Versione Win32: 2.0.0.0 Base di codice: file:///T:/EXP/database/MySQL%20Workbench%205.1.17%20OSS/ScintillaNet.DLL ---------------------------------------- System.Xml Versione assembly: 2.0.0.0 Versione Win32: 2.0.50727.3074 (QFE.050727-3000) Base di codice: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- ************** Debug JIT ************** Per attivare il debug JIT, è necessario impostare il valore jitDebugging nella sezione system.windows.forms del file di configurazione dell'applicazione o del computer (machine.config). L'applicazione inoltre deve essere compilata con il debug attivato. Ad esempio: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> Quando il debug JIT è attivato, tutte le eccezioni non gestite vengono inviate al debugger JIT registrato nel computer, anziché essere gestite da questa finestra di dialogo. if I export w Forward eng, I got this text SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL'; CREATE SCHEMA IF NOT EXISTS `mydb` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci ; USE `mydb`; DELIMITER // // USE mydb// CREATE PROCEDURE `mydb`.`routine1` () BEGIN DECLARE var1 INT; END; // DELIMITER ; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; please note // after DELIMITER // also, there is no way to delete blank line between DECLARE and USE with more complex code, and exporting also triggers and tables, I got several random DELIMITER// and DELIMITER; without sense... thx How to repeat: see above...