mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fix incompatibility SRCDEF && MEMORY=2 for ODBC JDBC tables
This commit is contained in:
@@ -142,8 +142,14 @@ bool EXTDEF::DefineAM(PGLOBAL g, LPCSTR am, int poff)
|
|||||||
Username = GetStringCatInfo(g, "User", NULL);
|
Username = GetStringCatInfo(g, "User", NULL);
|
||||||
Password = GetStringCatInfo(g, "Password", NULL);
|
Password = GetStringCatInfo(g, "Password", NULL);
|
||||||
|
|
||||||
if ((Srcdef = GetStringCatInfo(g, "Srcdef", NULL)))
|
// Memory was Boolean, it is now integer
|
||||||
|
if (!(Memory = GetIntCatInfo("Memory", 0)))
|
||||||
|
Memory = GetBoolCatInfo("Memory", false) ? 1 : 0;
|
||||||
|
|
||||||
|
if ((Srcdef = GetStringCatInfo(g, "Srcdef", NULL))) {
|
||||||
Read_Only = true;
|
Read_Only = true;
|
||||||
|
if (Memory == 2) Memory = 1;
|
||||||
|
} // endif Srcdef
|
||||||
|
|
||||||
Qrystr = GetStringCatInfo(g, "Query_String", "?");
|
Qrystr = GetStringCatInfo(g, "Query_String", "?");
|
||||||
Sep = GetStringCatInfo(g, "Separator", NULL);
|
Sep = GetStringCatInfo(g, "Separator", NULL);
|
||||||
@@ -166,10 +172,6 @@ bool EXTDEF::DefineAM(PGLOBAL g, LPCSTR am, int poff)
|
|||||||
if (Catfunc == FNC_TABLE)
|
if (Catfunc == FNC_TABLE)
|
||||||
Tabtyp = GetStringCatInfo(g, "Tabtype", NULL);
|
Tabtyp = GetStringCatInfo(g, "Tabtype", NULL);
|
||||||
|
|
||||||
// Memory was Boolean, it is now integer
|
|
||||||
if (!(Memory = GetIntCatInfo("Memory", 0)))
|
|
||||||
Memory = GetBoolCatInfo("Memory", false) ? 1 : 0;
|
|
||||||
|
|
||||||
Pseudo = 2; // FILID is Ok but not ROWID
|
Pseudo = 2; // FILID is Ok but not ROWID
|
||||||
return false;
|
return false;
|
||||||
} // end of DefineAM
|
} // end of DefineAM
|
||||||
|
Reference in New Issue
Block a user