Thanks Richard. That's not necessary.

I just found out my sqlite table was corrupted. By some reason ID field was not created as autoincrement.

I dropped the table and recreated it. Now it's working fine.

Thank you.

--
Vinicius Assef


On 08/08/2012 11:35 AM, Richard Vézina wrote:
Open an issue on google code!

Which web2py version?

Richard

On Wed, Aug 8, 2012 at 10:10 AM, [email protected]
<mailto:[email protected]> <[email protected]
<mailto:[email protected]>> wrote:

    Hi folks.

    I'm facing a problem with table.update_or_insert().

    I have: my_tab.update_or_insert(my___tab.name
    <http://my_tab.name>==my_name, name=my_name, phone=my_phone)

    When the search condition is not satisfied (i.e no records found) a
    new record with id=None is inserted in my_tab. The action is
    correct, but id shouldn't be None.

    Am I doing something wrong or is it a bug?

    --
    Vinicius Assef

    --




--




--



Reply via email to