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

Commit 3416639b by Jan Aagaard Meier

Merge pull request #646 from durango/regclass

PostgreSQL will no longer try to split regclass identifiers for default values.
2 parents c12a8ea5 d584d9b6
Showing with 4 additions and 1 deletions
......@@ -98,7 +98,10 @@ module.exports = (function() {
result[_result.Field].defaultValue = result[_result.Field].defaultValue.replace(/'/g, "")
if (result[_result.Field].defaultValue.indexOf('::') > -1) {
result[_result.Field].defaultValue = result[_result.Field].defaultValue.split('::')[0]
var split = result[_result.Field].defaultValue.split('::');
if (split[1].toLowerCase() !== "regclass)") {
result[_result.Field].defaultValue = split[0]
}
}
}
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!