You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
query:=`SELECT NAME, RU_PER_SEC, LOWER(PRIORITY), if(BURSTABLE = 'YES', TRUE, FALSE), IFNULL(QUERY_LIMIT,"()") FROM information_schema.resource_groups WHERE NAME = ?`
245
+
/*
246
+
Coerce types on SQL side into good types for golang
247
+
Burstable is a varchar(3) so we coerce to BOOLEAN
248
+
QUERY_LIMIT is nullable in DB, but we coerce to standard "empty" string type of "()"
249
+
Lowercase priority for less configuration variability
250
+
*/
251
+
query:=`SELECT NAME, RU_PER_SEC, LOWER(PRIORITY), BURSTABLE = 'YES' as BURSTABLE, IFNULL(QUERY_LIMIT,"()") FROM information_schema.resource_groups WHERE NAME = ?`
0 commit comments