Skip to content

Commit 85b75f7

Browse files
committed
make config.cfg a distribution template
1 parent c3b333a commit 85b75f7

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ build
55
local
66
*.log
77
*.db
8+
config.cfg
89
compile_commands.json
910

config.cfg renamed to config.cfg.dist

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ MaxCachedHostNames = 100
33
HostNameExpireTime = 30m
44

55
# SQLite Config
6-
#SQLite.File = "tibia.db"
7-
#SQLite.MaxCachedStatements = 100
6+
SQLite.File = "tibia.db"
7+
SQLite.MaxCachedStatements = 100
88

99
# PostgreSQL Config
1010
# NOTE(fusion): These options are passed directly to `PQconnectdbParams`.
@@ -15,8 +15,7 @@ PostgreSQL.Host = "localhost"
1515
PostgreSQL.Port = "5432"
1616
PostgreSQL.DBName = "tibia"
1717
PostgreSQL.User = "tibia"
18-
#PostgreSQL.Password = ""
19-
PostgreSQL.Password = "password"
18+
PostgreSQL.Password = ""
2019
PostgreSQL.ConnectTimeout = ""
2120
PostgreSQL.ClientEncoding = "UTF8"
2221
PostgreSQL.ApplicationName = "QueryManager"
@@ -25,13 +24,13 @@ PostgreSQL.SSLRootCert = ""
2524
PostgreSQL.MaxCachedStatements = 100
2625

2726
# MySQL/MariaDB Config
28-
#MySQL.Host = "localhost"
29-
#MySQL.Port = "3306"
30-
#MySQL.DBName = "tibia"
31-
#MySQL.User = "tibia"
32-
#MySQL.Password = ""
33-
#MySQL.UnixSocket = ""
34-
#MySQL.MaxCachedStatements = 100
27+
MySQL.Host = "localhost"
28+
MySQL.Port = "3306"
29+
MySQL.DBName = "tibia"
30+
MySQL.User = "tibia"
31+
MySQL.Password = ""
32+
MySQL.UnixSocket = ""
33+
MySQL.MaxCachedStatements = 100
3534

3635
# Connection Config
3736
QueryManagerPort = 7173

src/database_postgres.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static void ParamBool(ParamBuffer *Params, bool Value){
145145
if(Params->PreferredFormat == 1){ // BINARY FORMAT
146146
uint8 Data = (Value ? 0x01 : 0x00);
147147
InsertBinaryParam(Params, &Data, 1);
148-
}else{ // TEXT FORMAT
148+
}else{
149149
InsertTextParam(Params, (Value ? "TRUE" : "FALSE"));
150150
}
151151
}

src/querymanager.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ public:
642642

643643
// String Buffer
644644
//==============================================================================
645-
template<int N = KB(2)>
645+
template<int N>
646646
struct StringBuffer{
647647
private:
648648
STATIC_ASSERT(N > 0);

0 commit comments

Comments
 (0)