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

incorrect result query if it is execute through "execute statement" [CORE4396] #4718

Closed
firebird-automations opened this issue Apr 20, 2014 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @sim1984

Use CONNECT or CREATE DATABASE to specify a database
SQL> connect 'localhost/3051:horses' user 'sysdba' password 'masterkey';
Database: 'localhost/3051:horses', User: sysdba
SQL> select RDB$RELATION_ID from RDB$RELATIONS order by RDB$RELATION_ID rows 3;

RDB$RELATION_ID

          0
          1
          2

SQL> set term ^;
SQL> execute block
CON> returns (
CON> id integer
CON> )
CON> as
CON> begin
CON> for execute statement
CON> 'select RDB$RELATION_ID from RDB$RELATIONS order by RDB$RELATION_ID rows 3'
CON> on external 'localhost/3051:horses' as user 'sysdba' password 'masterkey'
CON> into :id
CON> do suspend;
CON> end^

      ID

============
0
0
0

SQL> set term ;^
SQL>

Commits: 44798fb FirebirdSQL/fbt-repository@cf13bed

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 3.0 Beta 1 [ 10332 ]

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Sean Leyne (seanleyne)

Did this issue only affect remote connected databases or did it also affect local EXECUTE STATEMENT?

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

The real problem was in the client, with the old API. It was introduced recently (not in public alpha).

@firebird-automations
Copy link
Collaborator Author

Commented by: @sim1984

On snapshot Firebird-3.0.0.31071 do not reproduce in both cases

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: Done successfully

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

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

No branches or pull requests

2 participants