Subject | Re: [firebird-support] Aliasing? |
---|---|
Author | Martijn Tonies |
Post date | 2009-04-23T07:09:22Z |
Hello Helen,
object query.
It's IBO thats at fault here, adding the DB_KEY thing while it shouldn't.
(or indeed, any other wrong syntaxes that older Firebird versions would
tolerate). However, ISQL *is* version specific, so Fb 1.5's isql should
permit that wrong syntax, if you got away with it before. Reverting to an
older version of DBW (preceding the upgrade to IBO 4.8) should also do the
trick.
With regards,
Martijn Tonies
Upscene Productions
http://www.upscene.com
Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!
Database questions? Check the forum:
http://www.databasedevelopmentforum.com
>>> Do you happen to be presenting this syntax via an app that uses IBO?That's not really the point, an alias is allowed in SQL, also for a single
>>Yes, I'm using IBO via Database Workbench Pro 3.3.
>>
>>> Aliasing isn't meant to be used for a multi-object query
>>Excuse my ignorance, but what is a multi-object query?
>
> Sorry,
> 1) that statement said exactly the opposite of what it was intended to
> say. Should be "Aliasing isn't meant to be used for a SINGLE object
> query."
object query.
It's IBO thats at fault here, adding the DB_KEY thing while it shouldn't.
> 2) a multi-object query is one that has joins and/or subquery expressionsHow is this "wrong" exactly? It's valid SQL.
> (including derived tables); also unions, if the set is unioned over
> multiple instances of the same table.
>
>
>>> IBO's parser adds RDB$DB_KEY to the output list automatically
>>So I assume I should test this using isql (which is what will run the
>>command in production anyway) instead of continuing with DBW.
>
> That doesn't seem justified unless you're determined to continue using the
> wrong syntax for a single-object query
(or indeed, any other wrong syntaxes that older Firebird versions would
tolerate). However, ISQL *is* version specific, so Fb 1.5's isql should
permit that wrong syntax, if you got away with it before. Reverting to an
older version of DBW (preceding the upgrade to IBO 4.8) should also do the
trick.
>I have noticed it :-) ...
>>> It [change to the API] is not supposed to matter
>>Should I file something with the tracker? If so, what would I report?
>
> IMO, there's no point, as it isn't due to a Firebird bug, and you won't be
> reporting anything that is not known and documented. OTOH, it would be
> worth drawing Martijn's attention to it (via firebird-tools or, better,
> Upscene's own newsgroups). I don't use DBW but I'd be surprised if it
> didn't have an option to pass raw SQL and also to avoid KeyLinks.
>
With regards,
Martijn Tonies
Upscene Productions
http://www.upscene.com
Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!
Database questions? Check the forum:
http://www.databasedevelopmentforum.com