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

Commit 42f6efea by Dirk Raeder

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

1 parent 4e0ccc22
Showing with 2 additions and 1 deletions
...@@ -113,7 +113,8 @@ module.exports = (function() { ...@@ -113,7 +113,8 @@ module.exports = (function() {
result[_result.name] = { result[_result.name] = {
type: _result.type, type: _result.type,
allowNull: (_result.notnull === 0), allowNull: (_result.notnull === 0),
defaultValue: _result.dflt_value defaultValue: _result.dflt_value,
primaryKey : (_result.pk === 1)
}; };
if (result[_result.name].type === 'TINYINT(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!