summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/go-gorp/gorp/dialect_postgres.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-05-19 12:55:35 -0400
committerenahum <nahumhbl@gmail.com>2016-05-19 13:55:35 -0300
commit04175d36eb3dfa68b1b1927194c2d283c644b07f (patch)
tree3a029df1869f1ea0b4c645c8f1febef15e58c2c6 /vendor/github.com/go-gorp/gorp/dialect_postgres.go
parent98fa24f216576ca49aaca5c647a95fb4e98f717d (diff)
downloadchat-04175d36eb3dfa68b1b1927194c2d283c644b07f.tar.gz
chat-04175d36eb3dfa68b1b1927194c2d283c644b07f.tar.bz2
chat-04175d36eb3dfa68b1b1927194c2d283c644b07f.zip
Rolling back gorp to earlier version (#3056)
Diffstat (limited to 'vendor/github.com/go-gorp/gorp/dialect_postgres.go')
-rw-r--r--vendor/github.com/go-gorp/gorp/dialect_postgres.go4
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 {