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:
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Test 10.1 compound statements
|
||||
*/
|
||||
* Test 10.1 compound statements
|
||||
*/
|
||||
|
||||
#include "testconnections.h"
|
||||
|
||||
@ -8,18 +8,18 @@ int main(int argc, char** argv)
|
||||
{
|
||||
TestConnections test(argc, argv);
|
||||
|
||||
const char* sql =
|
||||
"BEGIN NOT ATOMIC\n"
|
||||
" DECLARE EXIT HANDLER FOR SQLEXCEPTION\n"
|
||||
" BEGIN \n"
|
||||
" ROLLBACK;\n"
|
||||
" RESIGNAL;\n"
|
||||
" END;\n"
|
||||
" START TRANSACTION;\n"
|
||||
" INSERT INTO test.t1 VALUES (1);\n"
|
||||
" UPDATE test.t1 SET id = 2 WHERE id = 1;\n"
|
||||
" COMMIT;\n"
|
||||
"END\n";
|
||||
const char* sql
|
||||
= "BEGIN NOT ATOMIC\n"
|
||||
" DECLARE EXIT HANDLER FOR SQLEXCEPTION\n"
|
||||
" BEGIN \n"
|
||||
" ROLLBACK;\n"
|
||||
" RESIGNAL;\n"
|
||||
" END;\n"
|
||||
" START TRANSACTION;\n"
|
||||
" INSERT INTO test.t1 VALUES (1);\n"
|
||||
" UPDATE test.t1 SET id = 2 WHERE id = 1;\n"
|
||||
" COMMIT;\n"
|
||||
"END\n";
|
||||
|
||||
test.maxscales->connect();
|
||||
test.try_query(test.maxscales->conn_rwsplit[0], "DROP TABLE IF EXISTS test.t1");
|
||||
|
||||
Reference in New Issue
Block a user