Subject | RE: [firebird-support] Left join and computed columns |
---|---|
Author | Rick Debay |
Post date | 2012-06-19T19:58:55Z |
Since TEST_TABLE is empty, the results should be NULL.
Changing the query to 'SELECT *' return the one row in RDB$DATABASE, and
the column TEST_TABLE.ID is NULL and the column TEST_TABLE.COMPUTED_COL
is "FAILED".
If TEST_TABLE is empty, how can anything result from a join?
-----Original Message-----
From: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com] On Behalf Of Leyne, Sean
Sent: Tuesday, June 19, 2012 2:38 PM
To: firebird-support@yahoogroups.com
Subject: RE: [firebird-support] Left join and computed columns
Rick,
What do you think should be the expected result?
Sean
------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Visit http://www.firebirdsql.org and click the Resources item on the
main (top) menu. Try Knowledgebase and FAQ links !
Also search the knowledgebases at http://www.ibphoenix.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yahoo! Groups Links
Disclaimer: This message (including attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. RxStrategies, Inc. shall not be liable for the improper or incomplete transmission of the information contained in this communication or for any delay in its receipt or damage to your system. RxStrategies, Inc. does not guarantee that the integrity of this communication has been maintained nor that this communication is free from viruses, interceptions or interference.
Changing the query to 'SELECT *' return the one row in RDB$DATABASE, and
the column TEST_TABLE.ID is NULL and the column TEST_TABLE.COMPUTED_COL
is "FAILED".
If TEST_TABLE is empty, how can anything result from a join?
-----Original Message-----
From: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com] On Behalf Of Leyne, Sean
Sent: Tuesday, June 19, 2012 2:38 PM
To: firebird-support@yahoogroups.com
Subject: RE: [firebird-support] Left join and computed columns
Rick,
> It happens in 2.5.1. How do I file a bug report?There is nothing wrong with the results, as far as I can tell.
>
> CREATE TABLE TEST_TABLE
> (
> ID INTEGER,
> COMPUTED_COL VARCHAR(6) COMPUTED BY ('FAILED') );
>
> SELECT t.COMPUTED_COL
> FROM RDB$DATABASE r
> LEFT JOIN TEST_TABLE t
> ON r.RDB$RELATION_ID = t.ID
>
> COMPUTED_COL
> ------------
> FAILED
What do you think should be the expected result?
Sean
------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Visit http://www.firebirdsql.org and click the Resources item on the
main (top) menu. Try Knowledgebase and FAQ links !
Also search the knowledgebases at http://www.ibphoenix.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yahoo! Groups Links
Disclaimer: This message (including attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. RxStrategies, Inc. shall not be liable for the improper or incomplete transmission of the information contained in this communication or for any delay in its receipt or damage to your system. RxStrategies, Inc. does not guarantee that the integrity of this communication has been maintained nor that this communication is free from viruses, interceptions or interference.