mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 11:49:56 +03:00
Fix some sql issues :
- permalink that use if() syntax - add tables themes for other database engines that mysql git-svn-id: http://piwigo.org/svn/trunk@5192 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
6b296b293d
commit
4c461f36b1
6 changed files with 51 additions and 6 deletions
|
@ -124,7 +124,7 @@ SELECT IF(MAX('.$column.')+1 IS NULL, 1, MAX('.$column.')+1)
|
|||
|
||||
function pwg_db_changes($result)
|
||||
{
|
||||
return mysql_affected_rows($result);
|
||||
return mysql_affected_rows();
|
||||
}
|
||||
|
||||
function pwg_db_num_rows($result)
|
||||
|
@ -461,7 +461,7 @@ function do_maintenance_all_tables()
|
|||
function pwg_db_concat($array)
|
||||
{
|
||||
$string = implode($array, ',');
|
||||
return 'CONCAT(\''. $string.'\')';
|
||||
return 'CONCAT('. $string.')';
|
||||
}
|
||||
|
||||
function pwg_db_concat_ws($array, $separator)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue