cast PreparedStatement to org.gjt.mm.mysql.PreparedStatement
christine lorraine
Greenhorn
Joined: Sep 03, 2001
Posts: 20
posted
0
hi all, i want to use the getLastInsertID() of mmMysql Driver because according to the author it is thread safe. in the documentation it was stated that i need to cast my prepared statement to org.gjt.mm.mysql.PreparedStatement inorder to use this specific function. how can i do it? i tried several statements but i can't get it right. pls. help. or if you have other suggestions on how to retrieve the last inserted id considering the thread safetiness issues.. i will appreciate it very much. thanks.
mibrahim
Greenhorn
Joined: Jul 10, 2001
Posts: 3
posted
0
If a simple cast does not work try creating a new org.gjt.mm.mysql.PreparedStatement object passing the PreparedStatement you already have, as an argument.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: cast PreparedStatement to org.gjt.mm.mysql.PreparedStatement