Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!

Arpit Panwar

Greenhorn
+ Follow
since Jul 16, 2009
India
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Arpit Panwar

12 years ago

i keep getting badpading exception.
can anyone help me out on how to pad the message bits.
12 years ago
Can you specify what are the Exceptions you get...and how are you trying to install the Driver

wei liu wrote:

Arpit Panwar wrote:Make sure you change the Storage engine of your table to InnoDB
I think the default engine MyISAM doesnt support Transactions
Try it and let me know



Thanks Arpit, It works after change the engine from MyISAM to InnoDB.

Thanks for your help.


Pleased to help

André Asantos wrote:When I am using Sybase the query "select * from DatabaseCars.. TableKindOfCar " works differently when I use Mysql because the same query does not work... got it?



Can you post the error you get

Jan Cumps wrote:

Arpit Panwar wrote:Yup ResultSet returns no rows

ResultSet.getFetchSize() returns 0 i.e. no rows are being fetched

This method might not do what you expect that it does:
https://coderanch.com/t/299924/JDBC/java/workings-ResultSet-getFetchSize



Ok Thanks
Il try it out right away
I tried it without closing the connection the result is the same....
Still i keep Getting 0 rows
has is something to do with my Connection
Yup ResultSet returns no rows

ResultSet.getFetchSize() returns 0 i.e. no rows are being fetched

And should closing the Connection have anything to do with ResultSet object???
Make sure you change the Storage engine of your table to InnoDB
I think the default engine MyISAM doesnt support Transactions
Try it and let me know


where ResultSet is defined in class as

conct is a valid connection object
and query is also valid and the table also has rows in it...still resultset keeps fetching null....Can anyone help..


Could anyone please point out the error in the code

for length =5
it gives checkbits= -6
12 years ago