String truncation occurs when selecting from a view containing NOT IN inside [CORE3211] #3585
Submitted by: @dyemanov
CREATE TABLE T ( ID integer, FIELD1 varchar(30) );
CREATE VIEW VT ( ID )
INSERT INTO T (ID, FIELD1) VALUES (1, 'system');
select * from VT;
The problem is that every select retrieves the db_key/record_version pair and they're described as having length of 8 and 4 bytes respectively. But these values gets concatenated in this case, because expand_view_nodes() returns two items. It seems being related to NOT IN, because an equivalent query with NOT EXISTS works fine. The same query without a view also works fine.
The text was updated successfully, but these errors were encountered: