Re: [gnome-db] db grid ordering



On Sun, 2003-12-07 at 01:47, Marius Andreiana wrote:
> On Sun, 2003-12-07 at 01:43, Marius Andreiana wrote:
> > it only checks for BIGINT, but I have an INTEGER (tested this in
> > libgda).
> > Let's see if I can provide a patch
> attached, what do you think?
> 
> Looks ok to me, it works ok except on one INTEGER column (other INTEGERs
> work ok). Sorts fine 1st time, but on descending it crashes, mono gives
> message:
> 
> Unhandled Exception: System.NullReferenceException: A null value was
> found where an object instance was required
> in (unmanaged) (wrapper managed-to-native) Gtk.Application:gtk_main ()
> in <0x00004> (wrapper managed-to-native) Gtk.Application:gtk_main ()

I think you should just use the gda_value_compare function to compare
the 2 values. gnome-db-model.c should just call that function. I think
gda_value_compare includes all the available types, so please change the
patch to make it use that function.

cheers




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]