Multiple Rows in Singleton Select not reported in a View [CORE1572] #1990
Submitted by: Ivano Di Mizio (ivanodm)
Is related to QA165
Consider a database like this:
CREATE TABLE TABLE1 ( ID1 INTEGER NOT NULL, FIELD1 VARCHAR(20));
INSERT INTO TABLE1 (ID1, FIELD1) VALUES (1, 'ONE');
CREATE VIEW VIEW_TABLE( ID1, FIELD1, FIELD2) AS
If you run this query:
SELECT * FROM VIEW_TABLE;
There is no error raised and the data returned is:
ID1 FIELD1 FIELD2
If you instead run the same query the VIEW is based on:
SELECT TABLE1.ID1, TABLE1.FIELD1, ( SELECT TABLE2.FIELD2 FROM TABLE2 ) FROM TABLE1;
a "Multiple Rows in Singleton Select" error is correctly reported.
This behaviour only applies to Firebird 2.0.x.
The text was updated successfully, but these errors were encountered: