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

@ -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");