Bug #33850 PreparedStatement object returns null
Submitted: 13 Jan 2008 18:12 Modified: 31 Jan 2008 5:08
Reporter: Narender Vattikonda Email Updates:
Status: Duplicate Impact on me:
None 
Category:Connector / J Severity:S2 (Serious)
Version:5.1.5 OS:Any
Assigned to: CPU Architecture:Any
Tags: PreparedStatement

[13 Jan 2008 18:12] Narender Vattikonda
Description:
Connection.PreparedStatement returned is null for the below mentioned scenario

When com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource object is used to retrieve connection, com.mysql.jdbc.jdbc2.optional.ConnectionWrapper object is returned.

When ConnectionWrapper is used to retrieve PreparedStatement object using method prepareStatement, line numbers (729-741) we get null.

Above code works fine in 5.0.8 version

How to repeat:
Refer to description

Suggested fix:
Modify methods prepareStatement line (729-775) to return PreparedStatement object instead of null in com.mysql.jdbc.jdbc2.optional.ConnectionWrapper class
[31 Jan 2008 5:08] Mark Matthews
This is a duplicate of Bug#32101.