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-issue-importer opened this issue Jul 31, 2009 · 14 comments

Comments

@firebird-issue-importer

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 24, 2009

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 24, 2009

Modified by: @dyemanov

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 4, 2009

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 4, 2009

Modified by: @AlexPeshkoff

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 5, 2009

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 5, 2009

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 5, 2009

Modified by: @dyemanov

Fix Version: 2.5 RC1 [ 10362 ]

Fix Version: 2.5 RC2 [ 10372 ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 5, 2009

Modified by: @dyemanov

Fix Version: 3.0 Alpha 1 [ 10331 ]

Fix Version: 3.0 Initial [ 10301 ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 5, 2009

Modified by: @dyemanov

Version: 2.5 RC1 [ 10362 ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 16, 2009

Modified by: @pcisar

Link: This issue is related to QA244 [ QA244 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 29, 2011

Commented by: @pcisar

QA test added.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 29, 2011

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 18, 2016

Modified by: @pavel-zotov

QA Status: No test

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 19, 2016

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