Chore: use any rather than interface{} (#74066)
This commit is contained in:
@@ -96,8 +96,8 @@ func (db *PostgresDialect) SQLType(c *Column) string {
|
||||
return res
|
||||
}
|
||||
|
||||
func (db *PostgresDialect) IndexCheckSQL(tableName, indexName string) (string, []interface{}) {
|
||||
args := []interface{}{tableName, indexName}
|
||||
func (db *PostgresDialect) IndexCheckSQL(tableName, indexName string) (string, []any) {
|
||||
args := []any{tableName, indexName}
|
||||
sql := "SELECT 1 FROM " + db.Quote("pg_indexes") + " WHERE" + db.Quote("tablename") + "=? AND " + db.Quote("indexname") + "=?"
|
||||
return sql, args
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user