~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_stats/tests/t/cumulative.test

Merge in SQL reserved word patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
# so its possible a query could be missed if we do not wait
32
32
--sorted_result
33
33
--sleep 1 
34
 
SELECT IF(COUNT_SELECT, "YES", "NO"), IF(COUNT_UPDATE, "YES", "NO"), IF(COUNT_INSERT, "YES", "NO") FROM DATA_DICTIONARY.CUMULATIVE_SQL_COMMANDS WHERE USER != "root" ORDER BY USER;
 
34
SELECT IF(COUNT_SELECT, "YES", "NO"), IF(COUNT_UPDATE, "YES", "NO"), IF(COUNT_INSERT, "YES", "NO") FROM DATA_DICTIONARY.CUMULATIVE_SQL_COMMANDS WHERE USERNAME != "root" ORDER BY USERNAME;
35
35
 
36
 
SELECT USER, IF(DENIED_CONNECTIONS, "NO", "YES"), IF(LOST_CONNECTIONS, "YES", "NO"), IF(DENIED_CONNECTIONS, "YES", "NO"),  IF(ROWS_FETCHED, "YES", "NO"), IF(ROWS_UPDATED, "YES", "NO"), IF(ROWS_INSERTED, "YES", "NO")  FROM DATA_DICTIONARY.CUMULATIVE_USER_STATS WHERE USER != "root" ORDER BY USER;
 
36
SELECT USERNAME, IF(DENIED_CONNECTIONS, "NO", "YES"), IF(LOST_CONNECTIONS, "YES", "NO"), IF(DENIED_CONNECTIONS, "YES", "NO"),  IF(ROWS_FETCHED, "YES", "NO"), IF(ROWS_UPDATED, "YES", "NO"), IF(ROWS_INSERTED, "YES", "NO")  FROM DATA_DICTIONARY.CUMULATIVE_USER_STATS WHERE USERNAME != "root" ORDER BY USERNAME;
37
37
 
38
38
DROP TABLE a;