aboutsummaryrefslogtreecommitdiffstats
path: root/include/dblayer/functions_pdo-sqlite.inc.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-03-29 18:16:33 +0000
committernikrou <nikrou@piwigo.org>2010-03-29 18:16:33 +0000
commita6a3a6e0c271099b6f199c7363eba572fc7b5266 (patch)
tree25176b040dd1bc2b0ba7e7bbeda5704883c1c798 /include/dblayer/functions_pdo-sqlite.inc.php
parenta37f1fbae1309c44531f36e0109b1f2bfecf2539 (diff)
Fix some issues with database engines :
- insert into syntax not correct for posgresql or sqlite - add languages table - incorrect function for row count (sqlite) git-svn-id: http://piwigo.org/svn/trunk@5452 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/dblayer/functions_pdo-sqlite.inc.php')
-rw-r--r--include/dblayer/functions_pdo-sqlite.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dblayer/functions_pdo-sqlite.inc.php b/include/dblayer/functions_pdo-sqlite.inc.php
index 33a864980..9d58922dc 100644
--- a/include/dblayer/functions_pdo-sqlite.inc.php
+++ b/include/dblayer/functions_pdo-sqlite.inc.php
@@ -174,7 +174,7 @@ function pwg_db_changes(PDOStatement $result=null)
function pwg_db_num_rows(PDOStatement $result)
{
- return $result->columnCount();
+ return $result->rowCount();
}
function pwg_db_fetch_assoc($result)