gdaResults = new ArrayList ();
currentResult = -1;
currentRow = -1;
- command.OpenReader(this);
isOpened = true;
}
public int Depth {
[MonoTODO]
- get { throw new NotImplementedException (); }
+ get {
+ throw new NotImplementedException ();
+ }
}
public int FieldCount {
throw new NotImplementedException ();
}
- [MonoTODO]
public bool GetBoolean (int ordinal)
{
- throw new NotImplementedException ();
+ IntPtr value;
+
+ if (currentResult == -1)
+ return false;
+
+ value = libgda.gda_data_model_get_value_at ((IntPtr) gdaResults[currentResult],
+ ordinal, currentRow);
+ if (value != IntPtr.Zero) {
+ if (libgda.gda_value_get_vtype (value) != GdaValueType.Boolean)
+ throw new InvalidCastException ();
+ return libgda.gda_value_get_boolean (value);
+ }
+
+ return false;
}
[MonoTODO]
return false;
}
- [MonoTODO]
public bool Read ()
{
throw new NotImplementedException ();