2018-09-01T18:09:00Z||2018-09-01T18:09:00Z


File "/Users/xinge/db/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 1104, in assert_arg_type
    (name, ' or '.join("'%s'" % a for a in argtype), type(arg)))
sqlalchemy.exc.ArgumentError: Argument 'arg' is expected to be one of type '<class 'str'>' or '<class 'sqlalchemy.sql.elements.ClauseElement'>' or '<class 'sqlalchemy.sql.elements.TextClause'>', got '<class 'int'>'

问题代码是:

Column(BIGINT(unsigned=True), nullable=False, server_default=0)

原来是server_default不可以是number,换成string就好了。


{ true}