Fix: modification de la fonction "affected_rows" - merci à Simon
This commit is contained in:
parent
7fa4f265cb
commit
aed5f15f51
@ -2,6 +2,7 @@
|
|||||||
/* Copyright (C) 2002-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2002-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2007 Regis Houssin <regis.houssin@cap-networks.com>
|
* Copyright (C) 2005-2007 Regis Houssin <regis.houssin@cap-networks.com>
|
||||||
|
* Copyright (C) 2007 Simon Desee <simon@dedisoft.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -430,7 +431,9 @@ class DoliDb
|
|||||||
if (! is_resource($resultset)) { $resultset=$this->results; }
|
if (! is_resource($resultset)) { $resultset=$this->results; }
|
||||||
// mssql necessite un link de base pour cette fonction contrairement
|
// mssql necessite un link de base pour cette fonction contrairement
|
||||||
// a pqsql qui prend un resultset
|
// a pqsql qui prend un resultset
|
||||||
return mssql_affected_rows($this->db);
|
$rsRows = mssql_query("select @@rowcount as rows", $db);
|
||||||
|
return mssql_result($rsRows, 0, "rows");
|
||||||
|
//return mssql_affected_rows($this->db);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user