Page 1 of 1
Unified SQL and uniConnection.ExecSQL
Posted: Thu 12 Feb 2015 21:34
by FredS
Is Unified SQL supposed to work for ExecSQL?
Because this errors out:
'{if Interbase} set generator NEXTSHAREFOLDERSID to 39 {else} Update Generators SET NEXTSHAREFOLDERSID = 39 {endif}'#$D#$A
with
---------------------------
Debugger Exception Notification
---------------------------
Project PA.exe raised exception class EIBCError with message 'Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, column 1
{if'.
Re: Unified SQL and uniConnection.ExecSQL
Posted: Fri 13 Feb 2015 09:54
by ViktorV
Unified SQL worked for ExecSQL.
To solve the problem, try to execute the following code before calling TUniConnection.ExecSQL:
Code: Select all
if not EnableUniSQL then EnableUniSQL := True;
Re: Unified SQL and uniConnection.ExecSQL
Posted: Fri 13 Feb 2015 18:18
by FredS
I still get the same error even if I place that code right in front of the call:
if not EnableUniSQL then EnableUniSQL := True;
v := uniConnection.ExecSQL(ASql);
TUniSQL.Execute works of course with or without that code..
Re: Unified SQL and uniConnection.ExecSQL
Posted: Sun 15 Feb 2015 20:22
by FredS
One more thing, is TUniScript supposed to work with Unified SQL?
Re: Unified SQL and uniConnection.ExecSQL
Posted: Mon 16 Feb 2015 10:41
by ViktorV
Please make sure you have not set the EnableUniSQL global variable to False anywhere. If it is True, please send a small sample to demonstrate the issue to viktorv*devart*com, including a script to create and fill in the test database object.
TUniScript supports Unified SQL.
Re: Unified SQL and uniConnection.ExecSQL
Posted: Mon 16 Feb 2015 19:15
by FredS
Hi Viktor,
The Demo has been sent, turns out to reproduce in a simple demo a call to ExecProc needed to be made first.
Re: Unified SQL and uniConnection.ExecSQL
Posted: Tue 17 Feb 2015 07:37
by ViktorV
Thank you for the information. We are investigating this behavior of UniDAC, and we will inform you about the results.
Re: Unified SQL and uniConnection.ExecSQL
Posted: Thu 16 Apr 2015 12:16
by ViktorV
We have already fixed this issue, the fix will be included in the next UniDAC build. If you want to get this fix before the next UniDAC version is released, please provide your license number and IDE version to viktorv*devart*com and we will send you a night build.