Subject Re: [IBO] TIB_Query->Insert throws on non-NULL fields - FIXED
Author Paul Vinkenoog
Hi David,

> I'd changed some code so that it was doing this (on an empty
> dataset):
>
> qry->FieldByName("Notes")->AsString = "Uh-oh";
> ....
> qry->Insert(); // Pow!
>
> Does the first line auto insert a row? Or should it throw an
> exception?

Well, evidently it did insert a row. I didn't know that was possible.
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