Commit 3836c70c authored by denis's avatar denis

added gcc-5 as standard compiler (colored build output YEAH), minor fix to database creation

parent 35596a1a
Pipeline #5349765 failed with stage
in 1 minute and 3 seconds
CC = c99
CC = gcc-5
SRCPATH = $(wildcard src/*.c)
OBJPATH = $(addprefix build/,$(notdir $(SRCPATH:.c=.o)))
INCLUDES = -I/usr/include/mysql
......
......@@ -150,7 +150,7 @@ void mysql_create_db(char *host, char *username, char *password,\
bconcat(querystring, bfromcstr("'@'%' IDENTIFIED BY '"));
bconcat(querystring, parms.DB_PASSWORD);
bconcat(querystring, bfromcstr("';"));
//printf("\n%s", bdata(querystring));
printf("\n%s", bdata(querystring));
mysql_query(mysql, bdata(querystring));
// handle this errorcheck different from the rest
// we do not want to quit programm if user already exists
......@@ -166,7 +166,10 @@ void mysql_create_db(char *host, char *username, char *password,\
bconcat(querystring, db_name);
bconcat(querystring, bfromcstr(".* TO "));
bconcat(querystring, parms.DB_USERNAME);
//printf("\n%s", bdata(querystring));
printf("\n'%s'", bdata(querystring));
bconcat(querystring, bfromcstr(" IDENTIFIED BY '"));
bconcat(querystring, parms.DB_PASSWORD);
bconcat(querystring, bfromcstr("';"));
mysql_query(mysql, bdata(querystring));
check_mysql_error(bfromcstr("connect_mysql_database()"), querystring);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment