Subject | Re: [IBO] TIB_Query->Insert throws on non-NULL fields - FIXED |
---|---|
Author | Paul Vinkenoog |
Post date | 2003-01-30T17:26:46Z |
Hi David,
I know that IB_DataSource has a property AutoInsert which is by
default true, but that's to accomodate data-aware controls. Here, you
went straight to the IB_Query.
Anyway: glad you found it! :-)
Greetings,
Paul Vinkenoog
> I'd changed some code so that it was doing this (on an emptyWell, evidently it did insert a row. I didn't know that was possible.
> dataset):
>
> qry->FieldByName("Notes")->AsString = "Uh-oh";
> ....
> qry->Insert(); // Pow!
>
> Does the first line auto insert a row? Or should it throw an
> exception?
I know that IB_DataSource has a property AutoInsert which is by
default true, but that's to accomodate data-aware controls. Here, you
went straight to the IB_Query.
Anyway: glad you found it! :-)
Greetings,
Paul Vinkenoog