Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inherited DateTime object not accepted in parametrized query #11

Closed
v-mabarw opened this issue Jul 29, 2014 · 0 comments
Closed

Inherited DateTime object not accepted in parametrized query #11

v-mabarw opened this issue Jul 29, 2014 · 0 comments

Comments

@v-mabarw
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant