Commit ebc8a6ef authored by Olivier Bertrand's avatar Olivier Bertrand

- Fix connect string wrongly used when zero length

modified:
  storage/connect/tabmysql.cpp
parent b535cb98
......@@ -271,11 +271,11 @@ bool MYSQLDEF::ParseURL(PGLOBAL g, char *url)
/***********************************************************************/
bool MYSQLDEF::DefineAM(PGLOBAL g, LPCSTR am, int poff)
{
char *url;
char *url = Cat->GetStringCatInfo(g, Name, "Connect", NULL);
Desc = "MySQL Table";
if (!(url = Cat->GetStringCatInfo(g, Name, "Connect", NULL))) {
if (!url || !*url) {
// Not using the connection URL
Hostname = Cat->GetStringCatInfo(g, Name, "Host", "localhost");
Database = Cat->GetStringCatInfo(g, Name, "Database", "*");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment