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 1 guest

cron

User Control Panel

Login

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 124 on September 25th, 2020, 6:57 am

Users browsing this forum: No registered users and 1 guest