* System.Data.OleDb/OleDbConnection.cs (ServerVersion): implemented.
svn path=/trunk/mcs/; revision=6724
2002-08-18 Rodrigo Moya <rodrigo@ximian.com>
+ * System.Data.OleDb/OleDbConnection.cs (ServerVersion): implemented.
+
* System.Data.OleDb/OleDbDataReader.cs (Close): clear the results
ArrayList after releasing the items.
(GetName, GetDateTime, GetDouble, GetSingle, GetInt16, GetInt32,
}
public string ServerVersion {
- [MonoTODO]
get {
- throw new NotImplementedException ();
+ if (gdaConnection != IntPtr.Zero
+ && libgda.gda_connection_is_open (gdaConnection)) {
+ return libgda.gda_connection_get_server_version (gdaConnection);
+ }
+
+ return null;
}
}
[DllImport("gda-2")]
public static extern bool gda_connection_close (IntPtr cnc);
+ [DllImport("gda-2")]
+ public static extern string gda_connection_get_server_version (IntPtr cnc);
+
[DllImport("gda-2")]
public static extern string gda_connection_get_database (IntPtr cnc);