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:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user