table dateK does not exist.
On Friday, 4 October 2013 07:37:12 UTC-5, loïc lauréote wrote:
>
> Hi, i have an inversion in my code when i inject datas with sql statement.
> message : "Column test doesn't exists"
>
>
> I don't understand why.
> I'm on windows 7 and python 27
>
>
> code :
>
>
> import re
> from dal import DAL, Field
> if __name__ == '__main__':
> dicti = {'name':12}
> bidul = 'bidul'
> db =
> DAL(('sqlite://openbioreactor.sqlite','mysql://a:b@localhost/x'),folder=None)
> db.executesql("CREATE TABLE TBLB (PersonID int,LastName
> varchar(255),FirstName varchar(255),Address varchar(255),City
> varchar(255))")
> db.executesql("INSERT INTO TBLB (dateK, id, name, city) VALUES (test,
> example, tutorial, release)")
> db.commit()
>
>
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.