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

Not getting data if record first field is blank #99

Open
GoogleCodeExporter opened this issue Aug 7, 2015 · 3 comments
Open

Not getting data if record first field is blank #99

GoogleCodeExporter opened this issue Aug 7, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create a new database table.
2. Enter a new record in the table having first field blank.
3. Fetch the row from database.

What is the expected output? What do you see instead?

A ResultSet should be returned with having the row data. However it is
returning MySqlResponse.

Please provide any additional information below.

According to my case, I have a database table for storing settings details
for the application and it have first field as companyName of type
char(255). If companyName have the value '' and rest of the fields have
proper data then I got MySqlResponse rather then ResultSet object. If I
made changes in database for companyName say 'xyz' then it starts working
fine and I got ResultSet object.

According to my exploration.

When first field have '' data then under QueryHandler class inside
handleNextPacket() method it gets field_count = 0 while reading bytes and
assumes it as response packet rather then data packet and return RESPONSE
to all the responders.

Original issue reported on code.google.com by [email protected] on 17 Mar 2010 at 6:44

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