Files
MaxScale/server/core/test/canonical_tests/select.expected
Markus Mäkelä e4efc29297 MXS-1702: Process comments when canonicalizing
The canonicalization process now strips non-executable comments from the
SQL and replaces all constants in executable comments.

Enabled the comment test and updated expected output of the select and
alter tests.
2018-03-20 13:53:55 +02:00

61 lines
2.9 KiB
Plaintext

select count(*) from t1 where id not in (?,?);
select count(*) from t1 where match a against (?);
SELECT COUNT(*) FROM t1 WHERE MATCH(a) AGAINST(? IN BOOLEAN MODE);
select count(*) from t1 where s1 < ? or s1 is null;
SELECT COUNT(*) FROM t1 WHERE s1 = ?;
select count(*) from t1 where x < ?;
select count(*) from t1 where x = ?;
select count(*) from t1 where x > ?;
select count(*) from t1 where x = ?;
select truncate(?,?);
select truncate(?,?);
select v/?;
select uncompress(?);
SELECT UNHEX(?);
select unhex(hex(?)), hex(unhex(?)), unhex(?), unhex(NULL);
select UpdateXML(?,?,?);
select UpdateXML(@xml, ?, ?);
SELECT USER(),CURRENT_USER(),@@LOCAL.external_user;
SELECT user(),current_user(),@@proxy_user;
SELECT user, host FROM mysql.user where user = ? order by ?,?;
select user, host, password, plugin, authentication_string from mysql.user where user = ?;
select userid,count(*) from t1 group by userid desc having ? IN (?,COUNT(*));
select userid,count(*) from t1 group by userid desc having (count(*)+?) IN (?,?);
SELECT user_id FROM t1 WHERE request_id=?;
SELECT UserId FROM t1 WHERE UserId=? group by Userid;
select userid,pmtotal,pmnew, (select count(rd) from t1 where toid=t2.userid) calc_total, (select count(rd) from t1 where rd=? and toid=t2.userid) calc_new from t2 where userid in (select distinct toid from t1);
select yearweek(?,?) as ?, yearweek(?,?) as ?, yearweek(?,?) as ?,yearweek(?,?) as ?, yearweek(?,?) as ?, yearweek(?,?) as ?, yearweek(?,?) as ?;
select user() like ?;
select user,password,plugin,authentication_string from mysql.user where user like ?;
select user, QUOTE(host) from mysql.user where user=?;
SELECT UTC_DATE();
select utext from t1 where utext like ?;
SELECT _utf32 ?=_utf32 ?;
select _utf32? collate utf32_general_ci = ?;
SELECT _utf8 ?, _utf8 X?, _utf8 B?;
select _utf8 ? like concat(_utf8?,_utf8 ?,_utf8 ?);
select _utf8? union select _latin1?;
SELECT utf8_f,MIN(comment) FROM t1 GROUP BY ?;
SELECT _utf8mb3?;
select _utf8mb4 ? like concat(_utf8mb4?,_utf8mb4 ?,_utf8mb4 ?);
select (_utf8mb4 X?);
SELECT _utf8? COLLATE utf8_5624_2;
select (_utf8 X?);
select uuid() into @my_uuid;
SELECT v1.a, v2. b FROM v1 LEFT OUTER JOIN v2 ON (v1.a=v2.b) AND (v1.a >= ?) GROUP BY v1.a;
SELECT v1.f4 FROM v1 WHERE f1<>? OR f2<>? AND f4=? AND (f2<>? OR f3<>? AND f5<>? OR f4 LIKE ?);
select v1.r_object_id, v2.users_names from v1, v2where (v1.group_name=?) and v2.r_object_id=v1.r_object_idorder by users_names;
SELECT v2 FROM t1 WHERE v1 IN (?, ?, ?, ? ) AND i = ?;
select ? as ?;
SELECT @@tx_isolation;
select @ujis4 = CONVERT(@utf84 USING ujis);
SELECT @user_var;
select @v1def1, @v1def2, @v1def1=@v1def2;
SELECT @v1, @v2;
SELECT @v5, @v6, @v7, @v8, @v9, @v10;
SELECT (@v:=a) <> (@v:=?) FROM t1;
select @v, coercibility(@v);
select @@version, @@version_comment, @@version_compile_machine, @@version_compile_os;
SELECT @x_str_1, @x_int_1, @x_int_2, @x_int_3;
SELECT user,host,password,insert_priv FROM user WHERE user=@u AND host=@h;