array(-10, 'Positive', NULL),
array('-10', 'Positive', NULL),
array('-10foo', 'Positive', NULL),
- array('civicrm_column_name', 'mysqlColumnNameOrAlias', 'civicrm_column_name'),
- array('table.civicrm_column_name', 'mysqlColumnNameOrAlias', 'table.civicrm_column_name'),
- array('table.civicrm_column_name.toomanydots', 'mysqlColumnNameOrAlias', NULL),
- array('Home-street_address', 'mysqlColumnNameOrAlias', NULL),
- array('`Home-street_address`', 'mysqlColumnNameOrAlias', '`Home-street_address`'),
- array('table.`Home-street_address`', 'mysqlColumnNameOrAlias', 'table.`Home-street_address`'),
- array('`table-alias`.`Home-street_address`', 'mysqlColumnNameOrAlias', '`table-alias`.`Home-street_address`'),
- array('`table-alias`.column', 'mysqlColumnNameOrAlias', '`table-alias`.column'),
- array('column_name, sleep(5)', 'mysqlColumnNameOrAlias', NULL),
- array(str_repeat('a', 64), 'mysqlColumnNameOrAlias', str_repeat('a', 64)),
- array(str_repeat('a', 65), 'mysqlColumnNameOrAlias', NULL),
- array(str_repeat('a', 64) . '.' . str_repeat('a', 64), 'mysqlColumnNameOrAlias', str_repeat('a', 64) . '.' . str_repeat('a', 64)),
- array(str_repeat('a', 64) . '.' . str_repeat('a', 65), 'mysqlColumnNameOrAlias', NULL),
- array(str_repeat('a', 65) . '.' . str_repeat('a', 64), 'mysqlColumnNameOrAlias', NULL),
+ array('civicrm_column_name', 'MysqlColumnNameOrAlias', 'civicrm_column_name'),
+ array('table.civicrm_column_name', 'MysqlColumnNameOrAlias', 'table.civicrm_column_name'),
+ array('table.civicrm_column_name.toomanydots', 'MysqlColumnNameOrAlias', NULL),
+ array('Home-street_address', 'MysqlColumnNameOrAlias', NULL),
+ array('`Home-street_address`', 'MysqlColumnNameOrAlias', '`Home-street_address`'),
+ array('table.`Home-street_address`', 'MysqlColumnNameOrAlias', 'table.`Home-street_address`'),
+ array('`table-alias`.`Home-street_address`', 'MysqlColumnNameOrAlias', '`table-alias`.`Home-street_address`'),
+ array('`table-alias`.column', 'MysqlColumnNameOrAlias', '`table-alias`.column'),
+ array('column_name, sleep(5)', 'MysqlColumnNameOrAlias', NULL),
+ array(str_repeat('a', 64), 'MysqlColumnNameOrAlias', str_repeat('a', 64)),
+ array(str_repeat('a', 65), 'MysqlColumnNameOrAlias', NULL),
+ array(str_repeat('a', 64) . '.' . str_repeat('a', 64), 'MysqlColumnNameOrAlias', str_repeat('a', 64) . '.' . str_repeat('a', 64)),
+ array(str_repeat('a', 64) . '.' . str_repeat('a', 65), 'MysqlColumnNameOrAlias', NULL),
+ array(str_repeat('a', 65) . '.' . str_repeat('a', 64), 'MysqlColumnNameOrAlias', NULL),
array('asc', 'MysqlOrderByDirection', 'asc'),
array('DESC', 'MysqlOrderByDirection', 'desc'),
array('DESCc', 'MysqlOrderByDirection', NULL),
array('-3', 'ContactReference', NULL),
// Escape function is meant for sql, not xss
array('<p onclick="alert(\'xss\');">Hello</p>', 'Memo', '<p onclick=\\"alert(\\\'xss\\\');\\">Hello</p>'),
- array('civicrm_column_name', 'MysqlColumnName', '`civicrm_column_name`'),
- array('table.civicrm_column_name', 'MysqlColumnName', '`table`.`civicrm_column_name`'),
- array('table.civicrm_column_name.toomanydots', 'MysqlColumnName', NULL),
- array('Home-street_address', 'MysqlColumnName', '`Home-street_address`'),
- array('column_name, sleep(5)', 'MysqlColumnName', NULL),
+ array('civicrm_column_name', 'MysqlColumnNameOrAlias', '`civicrm_column_name`'),
+ array('table.civicrm_column_name', 'MysqlColumnNameOrAlias', '`table`.`civicrm_column_name`'),
+ array('table.civicrm_column_name.toomanydots', 'MysqlColumnNameOrAlias', NULL),
+ array('Home-street_address', 'MysqlColumnNameOrAlias', NULL),
+ array('`Home-street_address`', 'MysqlColumnNameOrAlias', '`Home-street_address`'),
+ array('column_name, sleep(5)', 'MysqlColumnNameOrAlias', NULL),
array('asc', 'MysqlOrderByDirection', 'asc'),
array('DESC', 'MysqlOrderByDirection', 'desc'),
array('DESCc', 'MysqlOrderByDirection', NULL),