empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From der...@apache.org
Subject empire-db git commit: EMPIREDB-249
Date Mon, 09 Oct 2017 08:39:12 GMT
Repository: empire-db
Updated Branches:
  refs/heads/master ee8a32069 -> 76e28f968


EMPIREDB-249


Project: http://git-wip-us.apache.org/repos/asf/empire-db/repo
Commit: http://git-wip-us.apache.org/repos/asf/empire-db/commit/76e28f96
Tree: http://git-wip-us.apache.org/repos/asf/empire-db/tree/76e28f96
Diff: http://git-wip-us.apache.org/repos/asf/empire-db/diff/76e28f96

Branch: refs/heads/master
Commit: 76e28f968dc460dd43b98c3ff38cfb6a27beb229
Parents: ee8a320
Author: Jan Glaubitz <jan@glaubitz.org>
Authored: Mon Oct 9 10:36:45 2017 +0200
Committer: Jan Glaubitz <jan@glaubitz.org>
Committed: Mon Oct 9 10:36:45 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/empire/db/mysql/DBDatabaseDriverMySQL.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/empire-db/blob/76e28f96/empire-db/src/main/java/org/apache/empire/db/mysql/DBDatabaseDriverMySQL.java
----------------------------------------------------------------------
diff --git a/empire-db/src/main/java/org/apache/empire/db/mysql/DBDatabaseDriverMySQL.java
b/empire-db/src/main/java/org/apache/empire/db/mysql/DBDatabaseDriverMySQL.java
index 49f19eb..da0680c 100644
--- a/empire-db/src/main/java/org/apache/empire/db/mysql/DBDatabaseDriverMySQL.java
+++ b/empire-db/src/main/java/org/apache/empire/db/mysql/DBDatabaseDriverMySQL.java
@@ -667,6 +667,9 @@ public class DBDatabaseDriverMySQL extends DBDatabaseDriver
                if (format != null)
                { // Convert using a format string
                    return "CAST(? AS CHAR " + format.toString() + ")";
+               } else
+               {
+            	   return "CAST(? AS CHAR)";
                }
            case BLOB:
                 return "CAST(? AS BLOB)";


Mime
View raw message