diff options
Diffstat (limited to 'src/interfaces/odbc/dlg_specific.c')
-rw-r--r-- | src/interfaces/odbc/dlg_specific.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/interfaces/odbc/dlg_specific.c b/src/interfaces/odbc/dlg_specific.c index 558fa66926b..e04cc8b5696 100644 --- a/src/interfaces/odbc/dlg_specific.c +++ b/src/interfaces/odbc/dlg_specific.c @@ -623,6 +623,15 @@ char temp[128]; globals.unknown_sizes = atoi(temp); + // Lie about supported functions? + SQLGetPrivateProfileString(DBMS_NAME, INI_LIE, "", + temp, sizeof(temp), ODBCINST_INI); + if ( temp[0] == '\0') + globals.lie = DEFAULT_LIE; + else + globals.lie = atoi(temp); + + // Readonly is stored in the driver section AND per datasource SQLGetPrivateProfileString(DBMS_NAME, INI_READONLY, "", temp, sizeof(temp), ODBCINST_INI); |