@@ -89,7 +89,7 @@ int CALLBACK driver_optionsProc(HWND hdlg,
8989CheckDlgButton (hdlg ,DRV_OPTIMIZER ,globals .disable_optimizer );
9090CheckDlgButton (hdlg ,DRV_KSQO ,globals .ksqo );
9191CheckDlgButton (hdlg ,DRV_UNIQUEINDEX ,globals .unique_index );
92- CheckDlgButton (hdlg ,DRV_READONLY ,globals .readonly );
92+ CheckDlgButton (hdlg ,DRV_READONLY ,globals .onlyread );
9393CheckDlgButton (hdlg ,DRV_USEDECLAREFETCH ,globals .use_declarefetch );
9494
9595/*Unknown (Default) Data Type sizes */
@@ -133,7 +133,7 @@ int CALLBACK driver_optionsProc(HWND hdlg,
133133globals .disable_optimizer = IsDlgButtonChecked (hdlg ,DRV_OPTIMIZER );
134134globals .ksqo = IsDlgButtonChecked (hdlg ,DRV_KSQO );
135135globals .unique_index = IsDlgButtonChecked (hdlg ,DRV_UNIQUEINDEX );
136- globals .readonly = IsDlgButtonChecked (hdlg ,DRV_READONLY );
136+ globals .onlyread = IsDlgButtonChecked (hdlg ,DRV_READONLY );
137137globals .use_declarefetch = IsDlgButtonChecked (hdlg ,DRV_USEDECLAREFETCH );
138138
139139/*Unknown (Default) Data Type sizes */
@@ -241,7 +241,7 @@ char buf[128];
241241}
242242
243243/*Readonly */
244- CheckDlgButton (hdlg ,DS_READONLY ,atoi (ci -> readonly ));
244+ CheckDlgButton (hdlg ,DS_READONLY ,atoi (ci -> onlyread ));
245245
246246/*Protocol */
247247if (strncmp (ci -> protocol ,PG62 ,strlen (PG62 ))== 0 )
@@ -279,7 +279,7 @@ char buf[128];
279279mylog ("IDOK: got ci = %u\n" ,ci );
280280
281281/*Readonly */
282- sprintf (ci -> readonly ,"%d" ,IsDlgButtonChecked (hdlg ,DS_READONLY ));
282+ sprintf (ci -> onlyread ,"%d" ,IsDlgButtonChecked (hdlg ,DS_READONLY ));
283283
284284/*Protocol */
285285if (IsDlgButtonChecked (hdlg ,DS_PG62 ))
@@ -335,7 +335,7 @@ char encoded_conn_settings[LARGE_REGISTRY_LEN];
335335/*extra info */
336336sprintf (& connect_string [strlen (connect_string )],
337337";READONLY=%s;PROTOCOL=%s;FAKEOIDINDEX=%s;SHOWOIDCOLUMN=%s;ROWVERSIONING=%s;SHOWSYSTEMTABLES=%s;CONNSETTINGS=%s" ,
338- ci -> readonly ,
338+ ci -> onlyread ,
339339ci -> protocol ,
340340ci -> fake_oid_index ,
341341ci -> show_oid_column ,
@@ -370,7 +370,7 @@ copyAttributes(ConnInfo *ci, char *attribute, char *value)
370370strcpy (ci -> port ,value );
371371
372372else if (stricmp (attribute ,INI_READONLY )== 0 )
373- strcpy (ci -> readonly ,value );
373+ strcpy (ci -> onlyread ,value );
374374
375375else if (stricmp (attribute ,INI_PROTOCOL )== 0 )
376376strcpy (ci -> protocol ,value );
@@ -392,7 +392,7 @@ copyAttributes(ConnInfo *ci, char *attribute, char *value)
392392// strcpy(ci->conn_settings, value);
393393}
394394
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 );
396396
397397}
398398
@@ -402,8 +402,8 @@ getDSNdefaults(ConnInfo *ci)
402402if (ci -> port [0 ]== '\0' )
403403strcpy (ci -> port ,DEFAULT_PORT );
404404
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 );
407407
408408if (ci -> protocol [0 ]== '\0' )
409409strcpy (ci -> protocol ,globals .protocol );
@@ -460,8 +460,8 @@ char encoded_conn_settings[LARGE_REGISTRY_LEN];
460460if (ci -> port [0 ]== '\0' || overwrite )
461461SQLGetPrivateProfileString (DSN ,INI_PORT ,"" ,ci -> port ,sizeof (ci -> port ),ODBC_INI );
462462
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 );
465465
466466if (ci -> show_oid_column [0 ]== '\0' || overwrite )
467467SQLGetPrivateProfileString (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];
501501ci -> database ,
502502ci -> username ,
503503ci -> 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 ,
506506ci -> protocol ,
507507ci -> show_oid_column ,
508508ci -> fake_oid_index ,
@@ -557,7 +557,7 @@ char encoded_conn_settings[LARGE_REGISTRY_LEN];
557557
558558SQLWritePrivateProfileString (DSN ,
559559INI_READONLY ,
560- ci -> readonly ,
560+ ci -> onlyread ,
561561ODBC_INI );
562562
563563SQLWritePrivateProfileString (DSN ,
@@ -772,9 +772,9 @@ char temp[256];
772772SQLGetPrivateProfileString (section ,INI_READONLY ,"" ,
773773temp ,sizeof (temp ),filename );
774774if (temp [0 ] )
775- globals .readonly = atoi (temp );
775+ globals .onlyread = atoi (temp );
776776else
777- globals .readonly = DEFAULT_READONLY ;
777+ globals .onlyread = DEFAULT_READONLY ;
778778
779779/*Default state for future DSN's protocol attribute
780780This isn't a real driver option YET. This is more
@@ -818,7 +818,7 @@ char tmp[128];
818818SQLWritePrivateProfileString (DBMS_NAME ,
819819INI_UNIQUEINDEX ,tmp ,ODBCINST_INI );
820820
821- sprintf (tmp ,"%d" ,globals .readonly );
821+ sprintf (tmp ,"%d" ,globals .onlyread );
822822SQLWritePrivateProfileString (DBMS_NAME ,
823823INI_READONLY ,tmp ,ODBCINST_INI );
824824