Commit 4814b057 by Torkel Ödegaard

Merge branch 'master' of github.com:grafana/grafana

parents ec802dbc 08dc0855
...@@ -104,7 +104,7 @@ func (db *Postgres) SqlType(c *Column) string { ...@@ -104,7 +104,7 @@ func (db *Postgres) SqlType(c *Column) string {
func (db *Postgres) TableCheckSql(tableName string) (string, []interface{}) { func (db *Postgres) TableCheckSql(tableName string) (string, []interface{}) {
args := []interface{}{"grafana", tableName} args := []interface{}{"grafana", tableName}
sql := "SELECT `TABLE_NAME` from `INFORMATION_SCHEMA`.`TABLES` WHERE `TABLE_SCHEMA`=? and `TABLE_NAME`=?" sql := "SELECT table_name FROM information_schema.tables WHERE table_schema=? and table_name=?"
return sql, args return sql, args
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment