New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error conversion error from string " " using outer join on int64 and int fields [CORE1150] #1572
Comments
Commented by: @hvlad In EVL_expr i see *v++ = EVL_expr(tdbb, *ptr++); In our case it is really cast operation and expression result is null Adriano, can you look at it, please ? |
Modified by: @asfernandesstatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 2.1 [ 10041 ] assignee: Adriano dos Santos Fernandes [ asfernandes ] |
Commented by: @pcisar Fix confirmed for 2.1 Alpha 1. Test added. |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Commented by: @pcisar Reopened to update ticket information. |
Modified by: @pcisarWorkflow: jira [ 11655 ] => Firebird [ 15204 ] |
Commented by: cosmin apreutesei (cosmin_ap) I get the exact same error with v2.1.17755-rc2 superserver. Strangely, the example reported above doesn't trigger the error for me, but my own full outer join on integer fields does. I also tested my example with v2.0.3-12981 superserver and it also works correctly so it's seem to be a 2.1 issue. Please note that the error is triggered only when there are records that does not match the full outer join filter condition (like with the records in the example below). If all records match the filter, the error is not triggered. This doesn't seem to have anything to do with the fact that the joined table is not a real table, but a subquery. Oh, and "dual" is any table with a single record in it. Dump all the sql below to a dummy database, then try to "select * from CAT_VERIFY_PARENTS". SET NAMES UTF8; CREATE TABLE CAT ( CREATE TABLE CAT_PARENTS ( INSERT INTO CAT (CAT_ID, CAT_NAME, PARENT_CAT_ID) VALUES (1, 'Masini de spalat', 4); COMMIT WORK; INSERT INTO CAT_PARENTS (CAT_ID, PARENT_CAT_ID, ANCESTRY_LEVEL) VALUES (7, 4, 1); COMMIT WORK; ALTER TABLE CAT ADD CONSTRAINT CHK_CAT_DIFF_PARENT check (CAT_ID <> PARENT_CAT_ID); CREATE PROCEDURE CAT_GET_PARENTS (
end; CREATE PROCEDURE CAT_VERIFY_PARENTS |
Modified by: @pavel-zotovQA Status: No test |
Modified by: @pavel-zotovQA Status: No test => Done successfully |
Submitted by: @hvlad
Relate to CORE1792
Is related to QA56
CREATE TABLE J (
ID INTEGER NOT NULL,
CODETABLE INTEGER,
CODEVSPTABLE INTEGER
);
CREATE TABLE TT (
ID BIGINT NOT NULL
);
ALTER TABLE TT ADD CONSTRAINT PK_TT PRIMARY KEY (ID);
COMMIT;
INSERT INTO TT(ID) VALUES(1);
COMMIT;
SELECT 1
FROM TT T1 LEFT JOIN J ON J.CODETABLE = http://T1.ID
LEFT JOIN TT T2 ON J.CODEVSPTABLE = http://T2.ID
conversion error from string " "
Commits: 0b3e789
The text was updated successfully, but these errors were encountered: