test_migrations: fails when func.now()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-odl |
Triaged
|
Low
|
Isaku Yamahata | ||
oslo.db |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
The followings column, test_models_sync() fails with mysql.
It seems like it's due to mysql way of server_default.
model
created_at = sa.Column(
alembic
msg
[ ( 'modify_default',
None,
'
'created_at',
{ 'existing_
DefaultCl
DefaultCl
output of debugger session (with format modification)
(Pdb) diff
[[('modify_
None,
'opendayligh
'lock_updated',
{'existing_
DefaultClaus
DefaultClaus
[('modify_
None,
'opendayli
'created_at',
{'
DefaultCla
DefaultCla
[('modify_
None,
'opendayli
'last_
{'existing_
DefaultCl
DefaultCl
(Pdb) diff[0][0][5]
DefaultClause(
(Pdb) diff[0][0][5].arg
<sqlalchemy.
(Pdb) diff[0]
u'CURRENT_
(Pdb) diff[0]
True
(Pdb) diff[0][0][6]
DefaultClause(
(Pdb) diff[0][0][6].arg
<sqlalchemy.
(Pdb) diff[0]
False
Changed in networking-odl: | |
assignee: | nobody → Isaku Yamahata (yamahata) |
importance: | Undecided → Medium |
Changed in oslo.db: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Changed in networking-odl: | |
status: | New → Confirmed |
importance: | Medium → Low |
Reviewed: https:/ /review. openstack. org/390017 /git.openstack. org/cgit/ openstack/ networking- odl/commit/ ?id=10167f5bb8b 403e3377d4f12f6 f23ef1a0bc24f2
Committed: https:/
Submitter: Jenkins
Branch: master
commit 10167f5bb8b403e 3377d4f12f6f23e f1a0bc24f2
Author: Isaku Yamahata <email address hidden>
Date: Fri Oct 21 22:27:33 2016 -0700
add test_migrations test
Change-Id: Iae1ca021aa2eed ef1b06fa84f58c5 f407b9b5c81
Related-bug: #1635915