Hi, 

I have a table like this:
db.define_table('speed',
Field('speed', 'integer'),
Field('startTime', 'time'),
Field('stopTime', 'time'),
migrate=False,
fake_migrate=True
)

The database is a MySQL db.
speed is of type int,
startTime is of type time,
stopTime is of type time,
The table was created with phpmyadmin.


If I do a call like this:
db.speed.insert(
speed = 30,
startTime = None,
stopTime = None,
)
everything works fine.

However, if I do a call like this:
db.speed.insert(
speed = 30,
startTime = datetime.time(hour=8, minute=30),
stopTime = datetime.time(hour=18, minute=30),
)
the call is simply ignored. I get no exception or anything but nothing 
appears in the database afterwards.
I've also tried this:
db.speed.insert(
speed = 30,
startTime = "08:30:00",
stopTime = "18:30:00",
)
with the same result (i.e. ignored).

What am I doing wrong?

-- 
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/d/optout.

Reply via email to