不要怂,就是干,撸起袖子干!

Commit b672ddc3 by Dirk Raeder

Fixed: added primaryKey to result of SQLite's describeTable query

1 parent 86482746
Showing with 2 additions and 1 deletions
......@@ -154,7 +154,8 @@ module.exports = (function() {
result[_result.name] = {
type: _result.type,
allowNull: (_result.notnull === 0),
defaultValue: _result.dflt_value
defaultValue: _result.dflt_value,
primaryKey: (_result.pk === 1)
}
if (result[_result.name].type === 'TINYINT(1)') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!