[PHP-DEV] PHP 4.0 Bug #9548 Updated: Duplicate record inserts using ODBC From: arnoldg <email protected>
Date: 03/05/01

ID: 9548
User Update by: arnoldg <email protected>
Status: Open
Bug Type: MySQL related
Description: Duplicate record inserts using ODBC

A sample insert statement is as follows:

insert into tble(tble_nme) values('my_value');

The record is inserted into the table correctly, except for the fact that it appears twice.

Calls to the hybrid function odbc_exec() result in an exception, leading me to believe that it is unsupported by the MySQL ODBC driver.

The same code works correctly when connecting to a Sybase SQL Anywhere 7.0 database via ODBC, so I do not believe that it is a code flaw.

Previous Comments:
---------------------------------------------------------------------------

[2001-03-04 13:23:27] arnoldg <email protected>
When using MySQL 3.23.32 (stable release), MyODBC 2.50.36, and PHP 4.0.4pl1 on Windows 98, using the odbc_prepare() and odbc_execute() function combination to insert a row into a table results in duplicate entries in the table.

---------------------------------------------------------------------------

Full Bug description available at: http://bugs.php.net/?id=9548

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>