aboutsummaryrefslogtreecommitdiff
path: root/internal/dialect.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/dialect.go')
-rw-r--r--internal/dialect.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/dialect.go b/internal/dialect.go
index 0cf90a2..e6db5b8 100644
--- a/internal/dialect.go
+++ b/internal/dialect.go
@@ -20,7 +20,7 @@ type Dialect interface {
// PostgresDialect is the dialect of PostgreSQL databases.
type PostgresDialect struct{}
-func (PostgresDialect) Placeholder(i int) string { return "$" + strconv.Itoa(i) }
+func (PostgresDialect) Placeholder(i int) string { return "$" + strconv.Itoa(i+1) }
func (PostgresDialect) QuoteIdentifier(name string) string { return `"` + name + `"` }
func (PostgresDialect) UsesLastInsertID() bool { return false }