diff options
author | plegall <plg@piwigo.org> | 2011-08-30 08:47:22 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2011-08-30 08:47:22 +0000 |
commit | 3cee72474178d394f67428152f2bd4968c107165 (patch) | |
tree | 3c3dca7a7736db0241111faafc6377c83f09961a | |
parent | 4ebc3b85b7f616464aa4bef0899987911438376b (diff) |
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/branches/2.2@12009 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 7a163af7c..fb55cbb08 100644 --- a/include/dblayer/functions_mysql.inc.php +++ b/include/dblayer/functions_mysql.inc.php @@ -488,7 +488,7 @@ function pwg_db_concat_ws($array, $separator) function pwg_db_cast_to_text($string) { - return 'CAST('.$string.' AS CHAR)'; + return $string; } /** |