Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 10.0.24
-
Component/s: Storage Engine - Connect
-
Labels:None
-
Environment:FreeBSD 10.2
clang 3.4
Description
Build failure in `storage/connect/tabmysql.cpp`
This is a clang specific error where we're passing a string constant where a variable of type `PSZ` is expected
Fix:
--- storage/connect/tabmysql.cpp.orig 2016-02-17 21:59:55.000000000 +0100
|
+++ storage/connect/tabmysql.cpp 2016-02-21 13:26:47.706891856 +0100
|
@@ -334,7 +334,7 @@ bool MYSQLDEF::DefineAM(PGLOBAL g, LPCST
|
Delayed = !!GetIntCatInfo("Delayed", 0);
|
} else {
|
// MYSQL access from a PROXY table
|
- Database = GetStringCatInfo(g, "Database", Schema ? Schema : "*");
|
+ Database = GetStringCatInfo(g, "Database", Schema ? Schema : (PSZ)"*");
|
Isview = GetBoolCatInfo("View", false);
|
 |
// We must get other connection parms from the calling table
|
cast to type `PSZ`