@@ -89,7 +89,7 @@ int CALLBACK driver_optionsProc(HWND hdlg,
89
89
CheckDlgButton (hdlg ,DRV_OPTIMIZER ,globals .disable_optimizer );
90
90
CheckDlgButton (hdlg ,DRV_KSQO ,globals .ksqo );
91
91
CheckDlgButton (hdlg ,DRV_UNIQUEINDEX ,globals .unique_index );
92
- CheckDlgButton (hdlg ,DRV_READONLY ,globals .readonly );
92
+ CheckDlgButton (hdlg ,DRV_READONLY ,globals .onlyread );
93
93
CheckDlgButton (hdlg ,DRV_USEDECLAREFETCH ,globals .use_declarefetch );
94
94
95
95
/*Unknown (Default) Data Type sizes */
@@ -133,7 +133,7 @@ int CALLBACK driver_optionsProc(HWND hdlg,
133
133
globals .disable_optimizer = IsDlgButtonChecked (hdlg ,DRV_OPTIMIZER );
134
134
globals .ksqo = IsDlgButtonChecked (hdlg ,DRV_KSQO );
135
135
globals .unique_index = IsDlgButtonChecked (hdlg ,DRV_UNIQUEINDEX );
136
- globals .readonly = IsDlgButtonChecked (hdlg ,DRV_READONLY );
136
+ globals .onlyread = IsDlgButtonChecked (hdlg ,DRV_READONLY );
137
137
globals .use_declarefetch = IsDlgButtonChecked (hdlg ,DRV_USEDECLAREFETCH );
138
138
139
139
/*Unknown (Default) Data Type sizes */
@@ -241,7 +241,7 @@ char buf[128];
241
241
}
242
242
243
243
/*Readonly */
244
- CheckDlgButton (hdlg ,DS_READONLY ,atoi (ci -> readonly ));
244
+ CheckDlgButton (hdlg ,DS_READONLY ,atoi (ci -> onlyread ));
245
245
246
246
/*Protocol */
247
247
if (strncmp (ci -> protocol ,PG62 ,strlen (PG62 ))== 0 )
@@ -279,7 +279,7 @@ char buf[128];
279
279
mylog ("IDOK: got ci = %u\n" ,ci );
280
280
281
281
/*Readonly */
282
- sprintf (ci -> readonly ,"%d" ,IsDlgButtonChecked (hdlg ,DS_READONLY ));
282
+ sprintf (ci -> onlyread ,"%d" ,IsDlgButtonChecked (hdlg ,DS_READONLY ));
283
283
284
284
/*Protocol */
285
285
if (IsDlgButtonChecked (hdlg ,DS_PG62 ))
@@ -335,7 +335,7 @@ char encoded_conn_settings[LARGE_REGISTRY_LEN];
335
335
/*extra info */
336
336
sprintf (& connect_string [strlen (connect_string )],
337
337
";READONLY=%s;PROTOCOL=%s;FAKEOIDINDEX=%s;SHOWOIDCOLUMN=%s;ROWVERSIONING=%s;SHOWSYSTEMTABLES=%s;CONNSETTINGS=%s" ,
338
- ci -> readonly ,
338
+ ci -> onlyread ,
339
339
ci -> protocol ,
340
340
ci -> fake_oid_index ,
341
341
ci -> show_oid_column ,
@@ -370,7 +370,7 @@ copyAttributes(ConnInfo *ci, char *attribute, char *value)
370
370
strcpy (ci -> port ,value );
371
371
372
372
else if (stricmp (attribute ,INI_READONLY )== 0 )
373
- strcpy (ci -> readonly ,value );
373
+ strcpy (ci -> onlyread ,value );
374
374
375
375
else if (stricmp (attribute ,INI_PROTOCOL )== 0 )
376
376
strcpy (ci -> protocol ,value );
@@ -392,7 +392,7 @@ copyAttributes(ConnInfo *ci, char *attribute, char *value)
392
392
// strcpy(ci->conn_settings, value);
393
393
}
394
394
395
- mylog ("copyAttributes: DSN='%s',server='%s',dbase='%s',user='%s',passwd='%s',port='%s',readonly ='%s',protocol='%s', conn_settings='%s')\n" ,ci -> dsn ,ci -> server ,ci -> database ,ci -> username ,ci -> password ,ci -> port ,ci -> readonly ,ci -> protocol ,ci -> conn_settings );
395
+ mylog ("copyAttributes: DSN='%s',server='%s',dbase='%s',user='%s',passwd='%s',port='%s',onlyread ='%s',protocol='%s', conn_settings='%s')\n" ,ci -> dsn ,ci -> server ,ci -> database ,ci -> username ,ci -> password ,ci -> port ,ci -> onlyread ,ci -> protocol ,ci -> conn_settings );
396
396
397
397
}
398
398
@@ -402,8 +402,8 @@ getDSNdefaults(ConnInfo *ci)
402
402
if (ci -> port [0 ]== '\0' )
403
403
strcpy (ci -> port ,DEFAULT_PORT );
404
404
405
- if (ci -> readonly [0 ]== '\0' )
406
- sprintf (ci -> readonly ,"%d" ,globals .readonly );
405
+ if (ci -> onlyread [0 ]== '\0' )
406
+ sprintf (ci -> onlyread ,"%d" ,globals .onlyread );
407
407
408
408
if (ci -> protocol [0 ]== '\0' )
409
409
strcpy (ci -> protocol ,globals .protocol );
@@ -460,8 +460,8 @@ char encoded_conn_settings[LARGE_REGISTRY_LEN];
460
460
if (ci -> port [0 ]== '\0' || overwrite )
461
461
SQLGetPrivateProfileString (DSN ,INI_PORT ,"" ,ci -> port ,sizeof (ci -> port ),ODBC_INI );
462
462
463
- if (ci -> readonly [0 ]== '\0' || overwrite )
464
- SQLGetPrivateProfileString (DSN ,INI_READONLY ,"" ,ci -> readonly ,sizeof (ci -> readonly ),ODBC_INI );
463
+ if (ci -> onlyread [0 ]== '\0' || overwrite )
464
+ SQLGetPrivateProfileString (DSN ,INI_READONLY ,"" ,ci -> onlyread ,sizeof (ci -> onlyread ),ODBC_INI );
465
465
466
466
if (ci -> show_oid_column [0 ]== '\0' || overwrite )
467
467
SQLGetPrivateProfileString (DSN ,INI_SHOWOIDCOLUMN ,"" ,ci -> show_oid_column ,sizeof (ci -> show_oid_column ),ODBC_INI );
@@ -501,8 +501,8 @@ char encoded_conn_settings[LARGE_REGISTRY_LEN];
501
501
ci -> database ,
502
502
ci -> username ,
503
503
ci -> password );
504
- qlog ("readonly ='%s',protocol='%s',showoid='%s',fakeoidindex='%s',showsystable='%s'\n" ,
505
- ci -> readonly ,
504
+ qlog ("onlyread ='%s',protocol='%s',showoid='%s',fakeoidindex='%s',showsystable='%s'\n" ,
505
+ ci -> onlyread ,
506
506
ci -> protocol ,
507
507
ci -> show_oid_column ,
508
508
ci -> fake_oid_index ,
@@ -557,7 +557,7 @@ char encoded_conn_settings[LARGE_REGISTRY_LEN];
557
557
558
558
SQLWritePrivateProfileString (DSN ,
559
559
INI_READONLY ,
560
- ci -> readonly ,
560
+ ci -> onlyread ,
561
561
ODBC_INI );
562
562
563
563
SQLWritePrivateProfileString (DSN ,
@@ -772,9 +772,9 @@ char temp[256];
772
772
SQLGetPrivateProfileString (section ,INI_READONLY ,"" ,
773
773
temp ,sizeof (temp ),filename );
774
774
if (temp [0 ] )
775
- globals .readonly = atoi (temp );
775
+ globals .onlyread = atoi (temp );
776
776
else
777
- globals .readonly = DEFAULT_READONLY ;
777
+ globals .onlyread = DEFAULT_READONLY ;
778
778
779
779
/*Default state for future DSN's protocol attribute
780
780
This isn't a real driver option YET. This is more
@@ -818,7 +818,7 @@ char tmp[128];
818
818
SQLWritePrivateProfileString (DBMS_NAME ,
819
819
INI_UNIQUEINDEX ,tmp ,ODBCINST_INI );
820
820
821
- sprintf (tmp ,"%d" ,globals .readonly );
821
+ sprintf (tmp ,"%d" ,globals .onlyread );
822
822
SQLWritePrivateProfileString (DBMS_NAME ,
823
823
INI_READONLY ,tmp ,ODBCINST_INI );
824
824