You are here

constant DB_PORTABILITY_ERRORS in Flickr API 5

Makes certain error messages in certain drivers compatible with those from other DBMS's

+ mysql, mysqli: change unique/primary key constraints DB_ERROR_ALREADY_EXISTS -> DB_ERROR_CONSTRAINT

+ odbc(access): MS's ODBC driver reports 'no such field' as code 07001, which means 'too few parameters.' When this option is on that code gets mapped to DB_ERROR_NOSUCHFIELD.

1 use of DB_PORTABILITY_ERRORS
DB_mysql::mysqlRaiseError in phpFlickr/PEAR/DB/mysql.php
Produces a DB_Error object regarding the current problem

File

phpFlickr/PEAR/DB.php, line 377

Code

define('DB_PORTABILITY_ERRORS', 16);