Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. +---------------------+------------------+------+-----+---------+----------------+
  2. | Field | Type | Null | Key | Default | Extra |
  3. +---------------------+------------------+------+-----+---------+----------------+
  4. | id | int(11) unsigned | NO | PRI | NULL | auto_increment |
  5. ...
  6. | access_date | int(10) unsigned | NO | | 0 | |
  7. +---------------------+------------------+------+-----+---------+----------------+
  8.  
  9. from sqlalchemy import Column, ForeignKey, Integer, String
  10. from sqlalchemy.ext.declarative import declarative_base
  11. Base = declarative_base()
  12.  
  13. class logme(Base):
  14.  
  15. id_ = Column(Integer, primary_key=True)
  16. ...
  17. date_access = Column(Integer, nullable=False, server_default=0)
  18.  
  19. 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'>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement