r9370: * sql/db-interface.lisp: Add new db-type-has-union?
[clsql.git] / db-mysql / mysql-sql.lisp
index cf85c591e8645d4da4374548e73caa077995b163..08f50fb582e0d0f67ebe8de0f9018319a4c8db3c 100644 (file)
 (defmethod db-type-has-boolean-where? ((db-type (eql :mysql)))
   nil)
 
+(defmethod db-type-has-union? ((db-type (eql :mysql)))
+  (not (eql (schar mysql::*mysql-client-info* 0) #\3)))
+
 (defmethod db-type-transaction-capable? ((db-type (eql :mysql)) database)
   (let ((tuple (car (database-query "SHOW VARIABLES LIKE 'HAVE_INNODB'" database :auto nil))))
     (and tuple (string-equal "YES" (second tuple)))))