forked from Wavyzz/dolibarr
Ajout de la mthode errno pour avoir le numro d'erreur SQL sur l'objet DoliDb.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<?PHP
|
<?PHP
|
||||||
/* Copyright (C) 2001 Fabien Seisen <seisen@linuxfr.org>
|
/* Copyright (C) 2001 Fabien Seisen <seisen@linuxfr.org>
|
||||||
* Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
* Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
|
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
* $Source$
|
||||||
@@ -244,6 +245,13 @@ class DoliDb {
|
|||||||
return mysql_error($this->db);
|
return mysql_error($this->db);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Function errno()
|
||||||
|
{
|
||||||
|
// 1050 Table already exists
|
||||||
|
// 1062 Duplicate key
|
||||||
|
return mysql_errno($this->db);
|
||||||
|
}
|
||||||
|
|
||||||
Function last_insert_id()
|
Function last_insert_id()
|
||||||
{
|
{
|
||||||
return mysql_insert_id();
|
return mysql_insert_id();
|
||||||
|
|||||||
Reference in New Issue
Block a user