瀏覽代碼

HUE-1675 [core] mysql extension needs an SSL fix for MySQL 5.5

Abraham Elmahrek 12 年之前
父節點
當前提交
5e5b2f1
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      desktop/core/ext-py/MySQL-python-1.2.3c1/_mysql.c

+ 5 - 0
desktop/core/ext-py/MySQL-python-1.2.3c1/_mysql.c

@@ -102,6 +102,11 @@ static int _mysql_server_init_done = 0;
 #define check_server_init(x) if (!_mysql_server_init_done) _mysql_server_init_done = 1
 #endif
 
+#if MYSQL_VERSION_ID >= 50500
+#define HAVE_OPENSSL 1
+#endif
+
+
 PyObject *
 _mysql_Exception(_mysql_ConnectionObject *c)
 {