cvs: pear /DB/DB mysql.php mysqli.php

From: Date: Wed, 18 Feb 2004 22:55:30 +0000
Subject: cvs: pear /DB/DB mysql.php mysqli.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-16655@lists.php.net to get a copy of this message
danielc Wed Feb 18 17:55:30 2004 EDT Modified files: /pear/DB/DB mysql.php mysqli.php Log: Map not null constraint error (1048) from DB_ERROR_CONSTRAINT to DB_ERROR_CONSTRAINT_NOT_NULL when portability is on. http://cvs.php.net/diff.php/pear/DB/DB/mysql.php?r1=1.60&r2=1.61&ty=u Index: pear/DB/DB/mysql.php diff -u pear/DB/DB/mysql.php:1.60 pear/DB/DB/mysql.php:1.61 --- pear/DB/DB/mysql.php:1.60 Wed Feb 18 00:37:32 2004 +++ pear/DB/DB/mysql.php Wed Feb 18 17:55:30 2004 @@ -17,7 +17,7 @@ // | Maintainer: Daniel Convissor <danielc@php.net> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.60 2004/02/18 05:37:32 danielc Exp $ +// $Id: mysql.php,v 1.61 2004/02/18 22:55:30 danielc Exp $ // XXX legend: @@ -39,7 +39,7 @@ * This is for MySQL versions 4.0 and below. * * @package DB - * @version $Id: mysql.php,v 1.60 2004/02/18 05:37:32 danielc Exp $ + * @version $Id: mysql.php,v 1.61 2004/02/18 22:55:30 danielc Exp $ * @category Database * @author Stig Bakken <ssb@php.net> */ @@ -169,6 +169,7 @@ if ($this->options['portability'] & DB_PORTABILITY_ERRORS) { $this->errorcode_map[1022] = DB_ERROR_CONSTRAINT; + $this->errorcode_map[1048] = DB_ERROR_CONSTRAINT_NOT_NULL; $this->errorcode_map[1062] = DB_ERROR_CONSTRAINT; } http://cvs.php.net/diff.php/pear/DB/DB/mysqli.php?r1=1.1&r2=1.2&ty=u Index: pear/DB/DB/mysqli.php diff -u pear/DB/DB/mysqli.php:1.1 pear/DB/DB/mysqli.php:1.2 --- pear/DB/DB/mysqli.php:1.1 Wed Feb 18 14:26:53 2004 +++ pear/DB/DB/mysqli.php Wed Feb 18 17:55:30 2004 @@ -18,7 +18,7 @@ // | Maintainer: Daniel Convissor <danielc@php.net> | // +----------------------------------------------------------------------+ // -// $Id: mysqli.php,v 1.1 2004/02/18 19:26:53 danielc Exp $ +// $Id: mysqli.php,v 1.2 2004/02/18 22:55:30 danielc Exp $ // NOTE: The tableInfo() method must be redone because the functions it @@ -38,7 +38,7 @@ * Note that persistent connections no longer exist. * * @package DB - * @version $Id: mysqli.php,v 1.1 2004/02/18 19:26:53 danielc Exp $ + * @version $Id: mysqli.php,v 1.2 2004/02/18 22:55:30 danielc Exp $ * @category Database * @author Chaillan Nicolas <nicos@php.net> */ @@ -175,6 +175,7 @@ if ($this->options['portability'] & DB_PORTABILITY_ERRORS) { $this->errorcode_map[1022] = DB_ERROR_CONSTRAINT; + $this->errorcode_map[1048] = DB_ERROR_CONSTRAINT_NOT_NULL; $this->errorcode_map[1062] = DB_ERROR_CONSTRAINT; }

« previous php.pear.cvs (#16655) next »