RE: [PHP-WIN] ADO & ODBC , for experts only
| From: | HKG) | Date: | Wed, 21 Aug 2002 11:38:04 +0000 |
| Subject: | RE: [PHP-WIN] ADO & ODBC , for experts only | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15404@lists.php.net to get a copy of this message | ||
A long shot:
The only essential different I can see at a fast glance is the
length of the string repeat.
It might be that the string becomes truncated in the third statement.
Try to execute a string that is 200 bytes in total length, and then
expand it to 300, if you gets and error if you execute the second
statement then you know what the fault depends on.
> -----Original Message-----
> From: Saci [mailto:nospam@bol.com.br]
> Sent: Wednesday, August 21, 2002 6:17 AM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] ADO & ODBC , for experts only
>
>
> This code works partially only on the 1st on 2nd Execute comand runs well
> the 3rd one return [...]
> $RSet = $dbc->Execute("UPDATE T SET RA = 'C', ".
> " O='
> X".Y.str_repeat('A',10)."', ".
> " R = F() ".
> " WHERE K = #");
> $RSet = $dbc->Execute("UPDATE T SET RA = 'C', ".
> " O='
> X".str_repeat('A',200)."', ".
> " R = F()".
> " WHERE K = #");
> $RSet = $dbc->Execute("UPDATE T SET RA = 'C', ".
> " O='
> X".str_repeat('A',300)."', ".
> " R = F()".
> " WHERE K = #");