Uncrustify maxscale

See script directory for method. The script to run in the top level
MaxScale directory is called maxscale-uncrustify.sh, which uses
another script, list-src, from the same directory (so you need to set
your PATH). The uncrustify version was 0.66.
This commit is contained in:
Niclas Antti
2018-09-09 22:26:19 +03:00
parent fa7ec95069
commit c447e5cf15
849 changed files with 35002 additions and 27238 deletions

View File

@ -17,11 +17,11 @@ struct Bind
bind.length = &length;
}
MYSQL_BIND bind;
char err = 0;
char is_null = 0;
char is_unsigned = 0;
uint32_t data = 1234;
MYSQL_BIND bind;
char err = 0;
char is_null = 0;
char is_unsigned = 0;
uint32_t data = 1234;
unsigned long length = sizeof(data);
};
@ -34,8 +34,10 @@ int main(int argc, char* argv[])
execute_query(test.maxscales->conn_rwsplit[0], "USE test");
execute_query(test.maxscales->conn_rwsplit[0], "CREATE OR REPLACE TABLE t1 AS SELECT 1 AS id");
execute_query(test.maxscales->conn_rwsplit[0], "CREATE OR REPLACE FUNCTION f1() RETURNS INT DETERMINISTIC BEGIN RETURN 1; END");
execute_query(test.maxscales->conn_rwsplit[0], "CREATE OR REPLACE PROCEDURE p1(IN i INT, IN j INT) BEGIN SELECT i + j; END");
execute_query(test.maxscales->conn_rwsplit[0],
"CREATE OR REPLACE FUNCTION f1() RETURNS INT DETERMINISTIC BEGIN RETURN 1; END");
execute_query(test.maxscales->conn_rwsplit[0],
"CREATE OR REPLACE PROCEDURE p1(IN i INT, IN j INT) BEGIN SELECT i + j; END");
test.maxscales->disconnect();
@ -48,11 +50,14 @@ int main(int argc, char* argv[])
test.set_timeout(30);
test.assert(mysql_stmt_prepare(stmt, query.c_str(), query.size()) == 0,
"Prepared statement failure: %s", mysql_stmt_error(stmt));
"Prepared statement failure: %s",
mysql_stmt_error(stmt));
test.assert(mysql_stmt_bind_param(stmt, &bind.bind) == 0,
"Bind failure: %s", mysql_stmt_error(stmt));
"Bind failure: %s",
mysql_stmt_error(stmt));
test.assert(mysql_stmt_execute(stmt) == 0,
"Execute failure: %s", mysql_stmt_error(stmt));
"Execute failure: %s",
mysql_stmt_error(stmt));
mysql_stmt_close(stmt);