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

Commit d584d9b6 by Daniel Durante

PostgreSQL will no longer try to split regclass identifiers for default values.

1 parent 0c35b450
Showing with 4 additions and 1 deletions
......@@ -96,7 +96,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!