All pastes #593747 Raw Edit

Stuff

public text v1 · immutable
#593747 ·published 2007-06-28 14:46 UTC
rendered paste body
Index: src/game/AccountMgr.cpp
===================================================================
--- src/game/AccountMgr.cpp	(revision 3967)
+++ src/game/AccountMgr.cpp	(working copy)
@@ -22,7 +22,7 @@
 #include "Player.h"
 #include "Policies/SingletonImp.h"
 
-extern DatabaseMysql loginDatabase;
+extern DatabasePostgre loginDatabase;
 
 INSTANTIATE_SINGLETON_1(AccountMgr);
 
Index: src/mangosd/Main.cpp
===================================================================
--- src/mangosd/Main.cpp	(revision 3967)
+++ src/mangosd/Main.cpp	(working copy)
@@ -27,8 +27,8 @@
 #include "Master.h"
 #include "SystemConfig.h"
 
-DatabaseMysql sDatabase;                                    ///< Accessor to the mangos server database
-DatabaseMysql loginDatabase;                                ///< Accessor to the realm/login database
+DatabasePostgre sDatabase;                                    ///< Accessor to the mangos server database
+DatabasePostgre loginDatabase;                                ///< Accessor to the realm/login database
 uint32 realmID;                                             ///< Id of the realm
 
 /// Print out the usage string for this program on the console.
Index: src/realmd/AuthSocket.cpp
===================================================================
--- src/realmd/AuthSocket.cpp	(revision 3967)
+++ src/realmd/AuthSocket.cpp	(working copy)
@@ -32,7 +32,7 @@
 #include "Auth/Sha1.h"
 
 extern RealmList m_realmList;
-extern DatabaseMysql dbRealmServer;
+extern DatabasePostgre dbRealmServer;
 #define ChunkSize 2048
 
 enum eAuthCmd
Index: src/realmd/Main.cpp
===================================================================
--- src/realmd/Main.cpp	(revision 3967)
+++ src/realmd/Main.cpp	(working copy)
@@ -36,7 +36,7 @@
 
 bool stopEvent = false;                                     ///< Setting it to true stops the server
 RealmList m_realmList;                                      ///< Holds the list of realms for this server
-DatabaseMysql dbRealmServer;                                ///< Accessor to the realm server database
+DatabasePostgre dbRealmServer;                              ///< Accessor to the realm server database
 
 /// Print out the usage string for this program on the console.
 void usage(const char *prog)
Index: src/realmd/RealmList.cpp
===================================================================
--- src/realmd/RealmList.cpp	(revision 3967)
+++ src/realmd/RealmList.cpp	(working copy)
@@ -27,7 +27,7 @@
 
 INSTANTIATE_SINGLETON_1( RealmList );
 
-extern DatabaseMysql dbRealmServer;
+extern DatabasePostgre dbRealmServer;
 
 RealmList::RealmList( )
 {
Index: src/shared/Database/DatabaseEnv.h
===================================================================
--- src/shared/Database/DatabaseEnv.h	(revision 3967)
+++ src/shared/Database/DatabaseEnv.h	(working copy)
@@ -27,11 +27,13 @@
 #include "Database/Field.h"
 #include "Database/QueryResult.h"
 #include "Database/QueryResultMysql.h"
+#include "Database/QueryResultPostgre.h"
 #include "Database/QueryResultSqlite.h"
 #include "Database/Database.h"
 #include "Database/DatabaseMysql.h"
+#include "Database/DatabasePostgre.h"
 #include "Database/DatabaseSqlite.h"
 
-extern DatabaseMysql sDatabase;
-extern DatabaseMysql loginDatabase;
+extern DatabasePostgre sDatabase;
+extern DatabasePostgre loginDatabase;
 #endif
Index: src/shared/Database/SQLStorage.cpp
===================================================================
--- src/shared/Database/SQLStorage.cpp	(revision 3967)
+++ src/shared/Database/SQLStorage.cpp	(working copy)
@@ -21,7 +21,7 @@
 #include "EventSystem.h"
 #include "Log.h"
 
-extern DatabaseMysql  sDatabase;
+extern DatabasePostgre sDatabase;
 
 const char CreatureInfofmt[]="iiissiiiiiiiiififfiiiiififiiiiffifiiiiiiiiiiiiiiiiiiiiiiiiiiisiis";
 const char CreatureDataAddonInfofmt[]="iiiiiiiiiiii";
Index: win/VC80/shared.vcproj
===================================================================
--- win/VC80/shared.vcproj	(revision 3967)
+++ win/VC80/shared.vcproj	(working copy)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="Windows-1252"?>
 <VisualStudioProject
 	ProjectType="Visual C++"
-	Version="8.00"
+	Version="8,00"
 	Name="shared"
 	ProjectGUID="{90297C34-F231-4DF4-848E-A74BCC0E40ED}"
 	>
@@ -193,6 +193,14 @@
 				>
 			</File>
 			<File
+				RelativePath="..\..\src\shared\Database\DatabasePostgre.cpp"
+				>
+			</File>
+			<File
+				RelativePath="..\..\src\shared\Database\DatabasePostgre.h"
+				>
+			</File>
+			<File
 				RelativePath="..\..\src\shared\Database\DatabaseSqlite.cpp"
 				>
 			</File>
@@ -221,6 +229,14 @@
 				>
 			</File>
 			<File
+				RelativePath="..\..\src\shared\Database\QueryResultPostgre.cpp"
+				>
+			</File>
+			<File
+				RelativePath="..\..\src\shared\Database\QueryResultPostgre.h"
+				>
+			</File>
+			<File
 				RelativePath="..\..\src\shared\Database\QueryResultSqlite.cpp"
 				>
 			</File>