Problem changing the delimiter with TZSQLProcessor

Forum related to MySQL

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
mparak
Senior Boarder
Senior Boarder
Posts: 81
Joined: 12.09.2005, 06:51
Location: Durban South Africa
Contact:

Problem changing the delimiter with TZSQLProcessor

Post by mparak »

Dear Friends,

I have a User defined function that runs beautifully if created from mySQL command prompt. It changes the delimiter to | first and when complete changes it back to the semi-colon.

When I load the script into the TZSQLProcessor I get a sql error.

If some kind could guide me on how to issue the "delimiter |" command from within TZSQLProcessor component I would be very grateful.
Simply setting the delimiter property of the component does not work.

Regards

M Parak
Mohammed Parak
CAD RETAIL
Durban South Africa
http://www.cad.co.za
seawolf
Zeos Dev Team *
Zeos Dev Team *
Posts: 385
Joined: 04.06.2008, 19:50
Contact:

Post by seawolf »

Until now it cannot be possible do what you asked. Anyway there are 2 possibilites:

1. change Delimitertype to dtEmptyLine and substituing every | to an empty line

2. open ..\parser\ZScriptParser.pas and change every ';' to '|' (do it if you are in a very desperate condition)
mparak
Senior Boarder
Senior Boarder
Posts: 81
Joined: 12.09.2005, 06:51
Location: Durban South Africa
Contact:

Post by mparak »

Dear SeaWolf,

I am very pleased to tell you that the dtEmptyLine trick worked beautifully.
Many thanks bro.

Regards

M

:D
Mohammed Parak
CAD RETAIL
Durban South Africa
http://www.cad.co.za
Post Reply