* System.Data.OleDb/OleDbConnection.cs:
* System.Data.OleDb/libgda.cs: upgraded to libgda 0.10.
svn path=/trunk/mcs/; revision=11402
+2003-02-09 Rodrigo Moya <rodrigo@ximian.com>
+
+ * System.Data.OleDb/OleDbConnection.cs:
+ * System.Data.OleDb/libgda.cs: upgraded to libgda 0.10.
+
2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
* list: Added new file ExpressionElement.cs
2003-01-30 Ville Palo <vi64pa@koti.soon.fi>
* list: Added new file ExpressionElement.cs
gdaConnection = libgda.gda_client_open_connection (libgda.GdaClient,
connectionString,
gdaConnection = libgda.gda_client_open_connection (libgda.GdaClient,
connectionString,
/* convert the connection string to its GDA equivalent */
//args = connectionString.Split (';');
/* convert the connection string to its GDA equivalent */
//args = connectionString.Split (';');
namespace System.Data.OleDb
{
namespace System.Data.OleDb
{
+ internal enum GdaConnectionOptions {
+ ReadOnly = 1 << 0
+ };
+
internal enum GdaCommandOptions {
IgnoreErrors = 1,
StopOnErrors = 1 << 1,
internal enum GdaCommandOptions {
IgnoreErrors = 1,
StopOnErrors = 1 << 1,
public static extern IntPtr gda_client_new ();
[DllImport("gda-2")]
public static extern IntPtr gda_client_new ();
[DllImport("gda-2")]
- public static extern IntPtr gda_client_open_connection (IntPtr client, string dsn, string username, string password);
+ public static extern IntPtr gda_client_open_connection (IntPtr client, string dsn,
+ string username, string password,
+ GdaConnectionOptions options);
[DllImport("gda-2")]
public static extern IntPtr gda_client_open_connection_from_string (IntPtr client,
string provider,
[DllImport("gda-2")]
public static extern IntPtr gda_client_open_connection_from_string (IntPtr client,
string provider,
+ string cnc_string,
+ GdaConnectionOptions options);
[DllImport("gda-2")]
public static extern bool gda_connection_is_open (IntPtr cnc);
[DllImport("gda-2")]
public static extern bool gda_connection_is_open (IntPtr cnc);