FreeTDS / PHP 3.0.16 Fails on Large Insert
Jon McDonald
jonm at entrigue.net
Wed Aug 2 13:41:27 EDT 2000
On MSSQL 7.0 we have a nvarchar field set to 2048 bytes. The following PHP
code fails:
<?
//$query = "INSERT INTO bi..test (test)
VALUES('111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111')";
$id = mssql_connect("sqlbox", "username", "password");
$result = mssql_query($query, $id);
mssql_close($id);
?>
The 1's are repeated 1024 times.
Any suggestions would be appreciated. Network sniffs show the data being
sent to the SQL Server from the PHP box. However, the data is never
inserted into SQL and no error message is returned...
Thanks in Advance!
More information about the FreeTDS
mailing list