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

COALESCE with bind variables [CORE582] #938

Closed
firebird-automations opened this issue Aug 13, 2005 · 7 comments
Closed

COALESCE with bind variables [CORE582] #938

firebird-automations opened this issue Aug 13, 2005 · 7 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: ovaron2k3 (ovaron2k3)

SFID: 1258287#⁠
Submitted By: ovaron2k3

i'm using FB 1.5.2 on windows xp.

the bind variable is 1 char, the following gives a
string truncation exception

WHERE COALESCE(?,'') = ''

while this works

WHERE COALESCE(?,CAST('' AS VARCHAR(1))) = ''

but the best would be, if

WHERE ? IS NULL

work

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Version: 1.5.2 [ 10027 ]

Component: API / Client Library [ 10040 ]

assignee: Dmitry Yemanov [ dimitr ]

SF_ID: 1258287 =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

assignee: Dmitry Yemanov [ dimitr ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 10606 ] => Firebird [ 14943 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

Provided that "? IS NULL" works in v2.5 (while requiring some support from the client side), I close this ticket as resolved.

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

Fix Version: 2.5 Beta 2 [ 10300 ]

@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

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

1 participant