Subject | Re: [IBO] IBQuery and Token Unknown for COMMIT, SET, and TERM |
---|---|
Author | bmckenna6 |
Post date | 2006-01-25T19:01:45Z |
--- In IBObjects@yahoogroups.com, Helen Borrie <helebor@t...> wrote:
The IB_Script worked like magic.
Is it the concluding <;> semicolon which defines the
"single statement?
And as such, then, <COMMIT;> also equals a "single statement?"
Is a "statement object" then, anything which descends from
IB_Statement?
Barry
>snip
> At 12:02 PM 25/01/2006, you wrote:
> >w/IBODatabase, IBQuery and FB 1.0.0.794
> >
> >When I execute the complete script below in IB_SQL
> >(as a new db with the required GENERATOR), it returns
> >without error.
> >
> >When I run it through IBOQuery flattened out as a single
> >string, it returns "Token Unknown" on the first COMMIT.
> >I'll match your "Erm" with my "Ahh."
> >I presume that there are some clues to running DSQL
> >through an IBQuery (or other similar components)
> >that I need to become aware of.
>
> Erm, yes. A statement object such as TIBOQuery is for a single
> statement. If you want to run a script, use a TIB_Script component!
The IB_Script worked like magic.
Is it the concluding <;> semicolon which defines the
"single statement?
And as such, then, <COMMIT;> also equals a "single statement?"
Is a "statement object" then, anything which descends from
IB_Statement?
Barry