You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing inherited DateTime object to sqlsrv_query() in $params argument,
SQLSRV complains about unknown type of the value.
SQLSRV should look whether the DateTime instance is class of or _ child of _
DateTime object.
Example of bug:
class DateTime2 extends DateTime {
}
sqlsrv_query('SELECT ?', array( array(new DateTime2()) )); // ← this raises an
error
Work Item Details
Original CodePlex Issue:Issue 16727 Status: Closed Reason Closed: Unassigned Assigned to: Unassigned Reported on: Mar 11, 2010 at 10:36 AM Reported by: michalkocarek Updated on: Jul 17, 2010 at 8:15 PM Updated by: AshayC Closed on: Jul 17, 2010 at 8:15 PM
The text was updated successfully, but these errors were encountered:
When passing inherited DateTime object to sqlsrv_query() in $params argument,
SQLSRV complains about unknown type of the value.
SQLSRV should look whether the DateTime instance is class of or _ child of _
DateTime object.
Example of bug:
class DateTime2 extends DateTime {
}
sqlsrv_query('SELECT ?', array( array(new DateTime2()) )); // ← this raises an
error
Work Item Details
Original CodePlex Issue: Issue 16727
Status: Closed
Reason Closed: Unassigned
Assigned to: Unassigned
Reported on: Mar 11, 2010 at 10:36 AM
Reported by: michalkocarek
Updated on: Jul 17, 2010 at 8:15 PM
Updated by: AshayC
Closed on: Jul 17, 2010 at 8:15 PM
The text was updated successfully, but these errors were encountered: