Format rest of the sources

This commit is contained in:
Markus Mäkelä
2019-05-09 11:31:40 +03:00
parent fbd61967a7
commit de95fcc9d6
29 changed files with 384 additions and 388 deletions

View File

@ -154,7 +154,7 @@ QUERY_CLASSIFIER* load_classifier(const char* name)
{
bool loaded = false;
size_t len = strlen(name);
char libdir[len + 3 + 1]; // Extra for ../
char libdir[len + 3 + 1]; // Extra for ../
sprintf(libdir, "../%s", name);
@ -204,8 +204,8 @@ void put_classifier(QUERY_CLASSIFIER* pClassifier)
}
bool get_classifiers(qc_sql_mode_t sql_mode,
const char* zName1,
const char* zArgs1,
const char* zName1,
const char* zArgs1,
QUERY_CLASSIFIER** ppClassifier1,
const char* zName2,
const char* zArgs2,
@ -594,7 +594,7 @@ bool compare_get_table_names(QUERY_CLASSIFIER* pClassifier1,
GWBUF* pCopy1,
QUERY_CLASSIFIER* pClassifier2,
GWBUF* pCopy2,
bool full)
bool full)
{
bool success = false;
const char* HEADING;

View File

@ -225,7 +225,7 @@ namespace maxscale
{
TestReader::TestReader(istream& in,
size_t line)
size_t line)
: m_in(in)
, m_line(line)
, m_delimiter(";")

View File

@ -70,10 +70,9 @@ int test()
string valid_json("SELECT Json_Array(56, 3.1416, 'My name is \"Foo\"', NULL)");
string invalid_json("SELECT Json_Foo(56, 3.1416, 'My name is \"Foo\"', NULL)");
auto encode_version = [](const SERVER::Version& sv) -> uint64_t
{
return sv.major * 10000 + sv.minor * 100 + sv.patch;
};
auto encode_version = [](const SERVER::Version& sv) -> uint64_t {
return sv.major * 10000 + sv.minor * 100 + sv.patch;
};
SERVER::Version sv;
// pre-Json