SqlCommand.Prepare method requires all parameters to have an

Discussion about the open-source Phalanger [?] project.

SqlCommand.Prepare method requires all parameters to have an

Postby davidbcn » October 21st, 2014, 9:51 pm

I get this error:

SqlCommand.Prepare method requires all parameters to have an explicitly set type.

When trying to Prepare() a query on a PDO object, only if the query has any placeholders in it.

But it is very usual on PHP that you prepare the statement without knowing the type and sizes of the different parameters.

I cannot figure out how to overcome this without having to rewrite every single database call and telling, alonside with the query, what data types de place holders expect to receive.
davidbcn
 
Posts: 87
Joined: September 10th, 2014, 3:07 am

Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 21 guests

cron

User Control Panel

Login

Who is online

In total there are 21 users online :: 0 registered, 0 hidden and 21 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 21 guests