We're updating the issue view to help you get more done.Learn more

[PATCH] Build failure in Connect

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:

1 2 3 4 5 6 7 8 9 10 11 --- 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`

Status

Assignee

Olivier Bertrand

Reporter

Bernard Spil

Components

Fix versions

Affects versions

10.0.24

Priority

Major