Add quote dialects

This commit is contained in:
Patrick O'brien 2016-09-10 03:14:18 +10:00
parent 817189fbfd
commit 9e6a3d5ee3
9 changed files with 109 additions and 9 deletions
bdb/drivers

View file

@ -340,3 +340,18 @@ func psqlIsValidated(typ string) bool {
return false
}
// RightQuote is the quoting character for the right side of the identifier
func (p *PostgresDriver) RightQuote() string {
return `"`
}
// LeftQuote is the quoting character for the left side of the identifier
func (p *PostgresDriver) LeftQuote() string {
return `"`
}
// IndexPlaceholders returns true to indicate PSQL supports indexed placeholders
func (p *PostgresDriver) IndexPlaceholders() bool {
return true
}