Skip to content

Commit 85bbc1e

Browse files
committed
Correct windows build
1 parent 3b57407 commit 85bbc1e

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

driver/mysql_ps_resultset.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2222
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2323
*/
2424

25-
//Prevent windows min() macro
26-
#define NOMINMAX
2725

2826

2927
#include <stdio.h>
@@ -49,6 +47,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
4947

5048
#include "mysql_debug.h"
5149

50+
//Prevent windows min() macro
51+
#undef min
52+
5253
namespace sql
5354
{
5455
namespace mysql

driver/mysql_resultset.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2222
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2323
*/
2424

25-
//Prevent windows min() macro
26-
#define NOMINMAX
2725

2826

2927
#include <string.h>
@@ -46,6 +44,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
4644

4745
#include "mysql_debug.h"
4846

47+
//Prevent windows min() macro
48+
#undef min
49+
4950
namespace sql
5051
{
5152
namespace mysql

test/unit/bugs/bugs.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2222
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2323
*/
2424

25-
//Prevent windows min() macro
26-
#define NOMINMAX
2725

2826
#include "bugs.h"
2927
#include <sstream>
3028
#include <limits>
3129
#include "driver/mysql_error.h"
3230

31+
//Prevent windows min() macro
32+
#undef min
33+
3334
namespace testsuite
3435
{
3536
namespace regression

test/unit/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ int main(int argc, char** argv)
4040

4141
Properties defaultStringValues;
4242

43-
defaultStringValues.insert(Properties::value_type("dbUrl", "tcp://127.0.0.1:3306"));
43+
defaultStringValues.insert(Properties::value_type("dbUrl", "tcp://127.0.0.1:13000"));
4444
defaultStringValues.insert(Properties::value_type("dbUser", "root"));
45-
defaultStringValues.insert(Properties::value_type("dbPasswd", "root"));
45+
defaultStringValues.insert(Properties::value_type("dbPasswd", ""));
4646
defaultStringValues.insert(Properties::value_type("dbSchema", "test"));
4747

4848
std::map<String, bool> defaultBoolValues;

0 commit comments

Comments
 (0)