Subject | Re: [IBO] TIB_Script and stored procedures |
---|---|
Author | Helen Borrie |
Post date | 2005-03-07T22:14:45Z |
At 02:38 PM 7/03/2005 +0100, you wrote:
SQL statement that doesn't belong there. So, whatever is happening "under
the hood" in IBOConsole, it is occurring because the word "execute" occurs
somewhere it shouldn't. My guess is that the program has failed to
initialise a buffer properly.
interactive SQL.
bug you describe is present in IBOConsole - the best place to submit this
bug description would be the firebird-tools list, making sure you report
the build number (from the Help/About box). I believe Lorenzo Mengoni (the
author of IBOConsole) monitors that list.
But you can do a reality check on your theory about TIB_Script by using the
Script tool in IB_SQL. Connect to the Employee database, open a Script
window, and enter the line
execute procedure add_emp_proj (2, 'MAPDB') ;
<Press Enter to insert a CRLF - this is essential at the end of a script>
Hit the Execute button and you will see that the script runs fine.
component derived from TIBOQuery.
(February 15 2005). Do you have that version? (I don't, I have build
1.1.8.10, which seems to be from July
2003). http://www.mengoni.it/downloads.html
Helen
>Hello,It is an engine error. It occurs whenever the engine receives a word in an
>
> TIB_Script seems to be "incompatible" with stored procedures
>called by an "execute procedure" statement.
>It gives the error
>
>
>ISC ERROR MESSAGE:
>Dynamic SQL Error
>SQL error code = -104
>Token unknown - line 2, char 1
>execute
>
>which seems to be a database error.
SQL statement that doesn't belong there. So, whatever is happening "under
the hood" in IBOConsole, it is occurring because the word "execute" occurs
somewhere it shouldn't. My guess is that the program has failed to
initialise a buffer properly.
>The same code works for a TIB_DSQL or in isql withoutNope, EXECUTE PROCEDURE works fine in a TIB_Script. But a script is not
>any problems, though.
interactive SQL.
>You can test this with, for example, IBOConsole, whichA program would not use a script for interactive SQL. I confirm that the
>seems to use the TIB_Script component in the
>"Interactive SQL" dialog.
bug you describe is present in IBOConsole - the best place to submit this
bug description would be the firebird-tools list, making sure you report
the build number (from the Help/About box). I believe Lorenzo Mengoni (the
author of IBOConsole) monitors that list.
But you can do a reality check on your theory about TIB_Script by using the
Script tool in IB_SQL. Connect to the Employee database, open a Script
window, and enter the line
execute procedure add_emp_proj (2, 'MAPDB') ;
<Press Enter to insert a CRLF - this is essential at the end of a script>
Hit the Execute button and you will see that the script runs fine.
>When you try to execute the statementConfirmed.
>"execute procedure some_proc"
>it gives the error mentioned above.
>Does the TIB_Script component parse and modifyYou are not looking at a TIB_Script here. It seems to be a custom
>the "execute procedure" statement in some way, and
>maybe break it somehow?
component derived from TIBOQuery.
>Btw., the procedure is executed anyways. It just givesIBOConsole isn't perfect, but Lorenzo did do some bug-fixing on it recently
>this error message/exception.
(February 15 2005). Do you have that version? (I don't, I have build
1.1.8.10, which seems to be from July
2003). http://www.mengoni.it/downloads.html
Helen