TaleLin / lin-cms-flask-core

A simple and practical CMS implememted by flask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

使用postgres数据库兼容问题

sunlin92 opened this issue · comments

[SQL: INSERT INTO lin_user_identity (delete_time, is_deleted, user_id, identity_type, identifier, credential) VALUES (%(delete_time)s, %(is_deleted)s, %(user_id)s, %(identity_type)s, %(identifier)s, %(credential)s) RETURNING lin_user_identity.id]
[parameters: {'delete_time': None, 'is_deleted': False, 'user_id': 1, 'identity_type': 'USERNAME_PASSWORD', 'identifier': None, 'credential': 'pbkdf2:sha256:260000$L661sSOrTEiLxWsG$49288ec31c6fd650dbfed174572f0a28d713b0a4b06cebe5172e4b00a653e07a'}]
(Background on this error at: https://sqlalche.me/e/14/9h9h)
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.DatatypeMismatch) column "mount" is of type smallint but expression is of type boolean
LINE 1: ..., mount) VALUES (NULL, false, '删除图书', '图书', true),(NUL...
                                                             ^
HINT:  You will need to rewrite or cast the expression.