Skip to content
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

select rdb$db_key from a view with a more than 1 table joined, results in conversion error [CORE2578] #2988

Closed
firebird-automations opened this issue Jul 31, 2009 · 14 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Manuel Troia (mtr)

Is related to QA244

/* Metadata */

SET SQL DIALECT 3;
SET NAMES NONE;
PAGE_SIZE 16384
DEFAULT CHARACTER SET NONE;

CREATE TABLE TABLE_A (
F_A INTEGER,
F_B INTEGER
);

CREATE TABLE TABLE_B(
F_A INTEGER,
F_C INTEGER
);

CREATE VIEW VIEW_A(
K1,
K2,
F_A,
F_B,
F_C)
AS
select A.rdb$db_key, B.rdb$db_key, A.F_A, A.F_B, B.F_C from table_A A
left join table_B B on A.F_A = B.F_A;

/*Command test case*/
select rdb$db_key from VIEW_A order by 1 /* if order clause omitted crashes IBExpert ?!*/

/* result */

Overflow occurred during data type conversion.
conversion error from string "�".

Commits: 39f3ec8 513a44b e8d9f05

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

description: /* Metadata */

SET SQL DIALECT 3;
SET NAMES NONE;
PAGE_SIZE 16384
DEFAULT CHARACTER SET NONE;

CREATE TABLE TABLE_A (
F_A INTEGER,
F_B INTEGER
);

CREATE TABLE TABLE_B(
F_A INTEGER,
F_C INTEGER
);

CREATE VIEW VIEW_A(
K1,
K2,
F_A,
F_B,
F_C)
AS
select A.rdb$db_key, B.rdb$db_key, A.F_A, A.F_B, B.F_C from table_A A
left join table_B B on A.F_A = B.F_A;

/*Command test case*/
select rdb$db_key from VIEW_A order by 1 /* if order clause omitted crashes IBExpert ?!*/

/* result */

Overflow occurred during data type conversion.
conversion error from string "�".

=>

/* Metadata */

SET SQL DIALECT 3;
SET NAMES NONE;
PAGE_SIZE 16384
DEFAULT CHARACTER SET NONE;

CREATE TABLE TABLE_A (
F_A INTEGER,
F_B INTEGER
);

CREATE TABLE TABLE_B(
F_A INTEGER,
F_C INTEGER
);

CREATE VIEW VIEW_A(
K1,
K2,
F_A,
F_B,
F_C)
AS
select A.rdb$db_key, B.rdb$db_key, A.F_A, A.F_B, B.F_C from table_A A
left join table_B B on A.F_A = B.F_A;

/*Command test case*/
select rdb$db_key from VIEW_A order by 1 /* if order clause omitted crashes IBExpert ?!*/

/* result */

Overflow occurred during data type conversion.
conversion error from string "�".

security: Developers [ 10012 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Version: 3.0 Initial [ 10301 ]

Version: 2.5 Beta 2 [ 10300 ]

Version: 2.5 Beta 1 [ 10251 ]

Version: 2.5 RC1 [ 10362 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Adriano dos Santos Fernandes [ asfernandes ] => Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Fixed errors when sorting dbkey's.
BTW, no idea why does IBExpert crash when order by is missing - isql works fine. Quite possible after fix IBExpert will crash with order by clause too.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5 RC2 [ 10372 ]

Fix Version: 2.1.4 [ 10361 ]

Fix Version: 3.0 Initial [ 10301 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Fix Version: 2.5 RC1 [ 10362 ]

Fix Version: 2.5 RC2 [ 10372 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Fix Version: 3.0 Alpha 1 [ 10331 ]

Fix Version: 3.0 Initial [ 10301 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Version: 2.5 RC1 [ 10362 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA244 [ QA244 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

QA test added.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test => Done successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment