GNOME Bugzilla – Bug 78845
Connections need to ability to be open in read-only mode
Last modified: 2004-12-22 21:47:04 UTC
For security reasons, such as in the Gnumeric GDA plugin, we need to open connections in read-only mode, so that user-side SQL can't damage in any way the connection being opened (think of a Gnumeric spreadsheet containing a DROP ALL TABLES, for instance, if that exists). So, we need to add this sort of option to the IDL and to each provider.
There is already a parameter in gda_client_open_connection with which clients can specify the read-onlyness of connections to be opened. Then, providers can check the gda_connection_get_options function to determine if the connection is read-only or not. A simple way of fixing this is in providers/mysql/gda-mysql-provider.c!process_sql_commands.