+2002-08-15 Rodrigo Moya <rodrigo@ximian.com>
+
+ * System.Data.OleDb/OleDbCommand.cs (ExecuteReader): check values
+ for NULL before passing them to Marshal.PtrToStructure, which issues
+ an exception if the value is NULL.
+
2002-08-15 Rodrigo Moya <rodrigo@ximian.com>
* System.Data/UniqueConstraint.cs (UniqueConstraint): commented
while (glist_node != null) {
results.Add (glist_node.data);
+ if (glist_node.next == IntPtr.Zero)
+ break;
+
glist_node = (GdaList) Marshal.PtrToStructure (glist_node.next,
typeof (GdaList));
}
set { list[index] = value; }
}
- object IDataParameterCollection.this[string name] {
+ object IDataParameterCollection.this[string name]
+ {
[MonoTODO]
- get { throw new NotImplementedException (); }
+ get {
+ throw new NotImplementedException ();
+ }
[MonoTODO]
- set { throw new NotImplementedException (); }
+ set {
+ throw new NotImplementedException ();
+ }
}
internal IntPtr GdaParameterList {
[MonoTODO]
- get { throw new NotImplementedException (); }
+ get {
+ IntPtr param_list;
+
+ param_list = libgda.gda_parameter_list_new ();
+ // FIXME: add parameters to list
+
+ return param_list;
+ }
}
#endregion // Properties
[DllImport("gda-2")]
public static extern bool gda_value_get_boolean (IntPtr value);
-
+
+ [DllImport("gda-2")]
+ public static extern IntPtr gda_parameter_list_new ();
+
[DllImport("gda-2")]
public static extern int gda_data_model_get_n_rows (IntPtr model);