diff options
Diffstat (limited to 'vendor/github.com/go-gorp/gorp/dialect_postgres.go')
-rw-r--r-- | vendor/github.com/go-gorp/gorp/dialect_postgres.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/go-gorp/gorp/dialect_postgres.go b/vendor/github.com/go-gorp/gorp/dialect_postgres.go index 736788f2a..a086381a8 100644 --- a/vendor/github.com/go-gorp/gorp/dialect_postgres.go +++ b/vendor/github.com/go-gorp/gorp/dialect_postgres.go @@ -78,7 +78,7 @@ func (d PostgresDialect) AutoIncrBindValue() string { } func (d PostgresDialect) AutoIncrInsertSuffix(col *ColumnMap) string { - return " returning " + d.QuoteField(col.ColumnName) + return " returning " + col.ColumnName } // Returns suffix @@ -123,7 +123,7 @@ func (d PostgresDialect) InsertAutoIncrToTarget(exec SqlExecutor, insertSql stri } func (d PostgresDialect) QuoteField(f string) string { - return `"` + f + `"` + return `"` + strings.ToLower(f) + `"` } func (d PostgresDialect) QuotedTableForQuery(schema string, table string) string { |