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

[Gambas-bugtracker] Bug #3042: Empty result object, but now with gb.db2


http://gambaswiki.org/bugtracker/edit?object=BUG.3042&from=L21haW4-

Comment #3 by Benoît MINISINI:

This is another problem with sqlite.

I think you have created the database outside of Gambas, and so the 'id' field is not detected as a serial field.

Only serial fields are retrieved by the 'Create()' method using the 'RETURNING' keyword, for optimization reasons.

If you transform the 'id' field into a recognized serial field from the Gambas IDE, the value of the 'id' field will be correctly retrieved.


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----