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

Query error when condition exceed field max length [JDBC456] #495

Closed
firebird-automations opened this issue Sep 20, 2016 · 7 comments
Closed

Comments

@firebird-automations
Copy link

Submitted by: gaspar barancelli junior (gasparbarancelli)

Votes: 7

When we perform a query and the value of the condition exceeds the size of the database there is a column with loss of connection that run flush the connection to be able to use it again.
There are problems also when the value of the condition has special characters such as an accent, bar or point, if the last text size as value is the same size of the database column, an error occurs because the special character counts as two positions.

Example

CREATE TABLE test (
     id INTEGER NOT NULL,
     name varchar (10) NOT NULL
);

select * from test where name like '% 12345678912345678%'
select * from test where name like '% 123456789e%'
select * from test where name like '% 123456789.%'

@firebird-automations
Copy link
Author

Modified by: gaspar barancelli junior (gasparbarancelli)

description: when user PreparedStatement query ,The condition like this field='?' ,when ? exceed filed max length ,error ,Statement no problem => When we perform a query and the value of the condition exceeds the size of the database there is a column with loss of connection that run flush the connection to be able to use it again.
There are problems also when the value of the condition has special characters such as an accent, bar or point, if the last text size as value is the same size of the database column, an error occurs because the special character counts as two positions.

Example

CREATE TABLE test (
     id INTEGER NOT NULL,
     name varchar (10) NOT NULL
);

select * from test where name like '% 12345678912345678%'
select * from test where name like '% 123456789e%'
select * from test where name like '% 123456789.%'

environment: windows jdk 1.5 1.6 => Windows and Linux jdk 7 or 8

@firebird-automations
Copy link
Author

Modified by: gaspar barancelli junior (gasparbarancelli)

Version: Jaybird 2.2.11 [ 10751 ]

Version: Jaybird 2.2.10 [ 10723 ]

Version: Jaybird 2.2.9 [ 10691 ]

Version: Jaybird 2.2.8 [ 10664 ]

Version: Jaybird 2.2.7 [ 10660 ]

@firebird-automations
Copy link
Author

Commented by: @mrotteveel

Please clarify the exact problem you are having and include a Java program that demonstrates the problem. Also specify the Firebird version you are using.

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

assignee: Roman Rokytskyy [ rrokytskyy ] => Mark Rotteveel [ avalanche1979 ]

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

priority: Critical [ 2 ] => Major [ 3 ]

@firebird-automations
Copy link
Author

Commented by: @mrotteveel

Please provide a way to reproduce it, for now I'm closing this ticket.

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

status: Open [ 1 ] => Closed [ 6 ]

resolution: Incomplete [ 4 ]

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