PHP 4.0 Bug #4538 Updated: Error with odbc_exec and an Insert query
| From: | Bug Database | Date: | Tue, 20 Jun 2000 09:15:42 +0000 |
| Subject: | PHP 4.0 Bug #4538 Updated: Error with odbc_exec and an Insert query | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-21802@lists.php.net to get a copy of this message | ||
ID: 4538
Updated by: kara
Reported By: guillaume.patry@netcourrier.com
Status: Open
Bug Type: ODBC related
Assigned To:
Comments:
Either use
$AddPrepare = odbc_prepare($odbc, $SQL_Insert);
odbc_execute($AddPrepare);
or
$res = odbc_exec($odbc, $SQL_Insert);
Additionally, your odbc_commit() is bogus.
You are normally in autocommit mode, meaning your statements
are automatically commited on success.
If you were in manual commit mode, you should check the
result of odbc_execute() / odbc_exec() and then commit /
rollback, not the result of odbc_prepare()
Full Bug description available at: http://bugs.php.net/version4/?id=4538