Bug #5797 MySqlCommand Error

Submitted: 29 Sep 2004 9:51 Modified: 13 Oct 2004 17:42
Reporter: [ name withheld ] Email Updates:
Status: Duplicate Impact on me:
None 
Category:Connector / NET Severity:S1 (Critical)
Version:Connector/Net 1.0 beta OS:Windows (Windows XP)
Assigned to: Assigned Account CPU Architecture:Any

[29 Sep 2004 9:51] [ name withheld ]
Description:
If MySqlCommand is initialized with the constructor which takes an Transaction as well, the Parameters collection is not initialized.

Parameters collection is read-only.

How to repeat:
clone = new MySqlCommand( command.CommandText, ((MySqlConnection)(command.Connection)), ((MySqlTransaction)(command.Transaction)) );

...

clone.Parameters.Add( cloneParam );
//fails, because clone.Parameters is null
[13 Oct 2004 17:42] Reggie Burnett
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the original bug instead.

Thank you for your interest in MySQL.

Additional info:

This is a duplicate of #5613 and has been fixed.  Thanks

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.