Hi,

I got a problem with one of my database tables. The field 'title' isn't set 
to be unique. But inserting a row using filter_fields() ends with error 
"title is not unique".

db.define_table('task',
   Field('title', unique=False),
   Field('description', 'text', notnull=True),
 format='%(title)s')

db.define_table('step',
   Field('title'),
   Field('description', 'text', notnull=True),
   format='%(title)s')

db.task.insert(**db.task._filter_fields(step))

<class 'sqlite3.IntegrityError'> column title is not unique

Any help would be great!

- Andreas

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to