diff options
author | plegall <plg@piwigo.org> | 2011-08-30 08:48:12 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2011-08-30 08:48:12 +0000 |
commit | 9983af733615bfc359174f19d82ce7851247c0cd (patch) | |
tree | c61b39aa94d270b9b76dd47b614307ca54bc9e6b | |
parent | f8226de8e6940234d53a8799a7f6e30364ce6ce7 (diff) |
merge r12009 from branch 2.2 to trunk
bug 2416 fixed: the CAST function in MySQL seems to return unexpected results,
depending on MySQL version. As a consequence it was producing virtual years in
calendar display.
git-svn-id: http://piwigo.org/svn/trunk@12010 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | include/dblayer/functions_mysql.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dblayer/functions_mysql.inc.php b/include/dblayer/functions_mysql.inc.php index e74cddb0d..dbc66d503 100644 --- a/include/dblayer/functions_mysql.inc.php +++ b/include/dblayer/functions_mysql.inc.php @@ -595,7 +595,7 @@ function pwg_db_concat_ws($array, $separator) function pwg_db_cast_to_text($string) { - return 'CAST('.$string.' AS CHAR)'; + return $string; } /** |