From 2e55998ab416e8fd1fcf0dee4e0869be9d336306 Mon Sep 17 00:00:00 2001 From: beech Date: Fri, 9 Jan 2009 07:10:43 +0000 Subject: - Fix build - Bump portrevision PR: ports/129629 [1] PR: ports/130308 [2] Submitted by: RandomUser [1] Submitted by: Dan Caescu [2] Approved by: maintainer timeout (2+ weeks) --- databases/mysql-connector-odbc/Makefile | 3 ++- .../files/patch-driver_myodbc3.h | 22 ++++++++++++++++++++++ .../files/patch-driver_myutil.h | 11 +++++++++++ .../files/patch-driver_results.c | 11 +++++++++++ 4 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 databases/mysql-connector-odbc/files/patch-driver_myodbc3.h create mode 100644 databases/mysql-connector-odbc/files/patch-driver_myutil.h create mode 100644 databases/mysql-connector-odbc/files/patch-driver_results.c (limited to 'databases') diff --git a/databases/mysql-connector-odbc/Makefile b/databases/mysql-connector-odbc/Makefile index 13a81127deda..6467a19a75d7 100644 --- a/databases/mysql-connector-odbc/Makefile +++ b/databases/mysql-connector-odbc/Makefile @@ -7,7 +7,8 @@ PORTNAME= mysql-connector-odbc PORTVERSION= 3.51.26 -DISTVERSIONSUFFIX= r1127 +DISTVERSIONSUFFIX= r1127 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= ${MASTER_SITE_MYSQL} MASTER_SITE_SUBDIR= Connector-ODBC/3.51 diff --git a/databases/mysql-connector-odbc/files/patch-driver_myodbc3.h b/databases/mysql-connector-odbc/files/patch-driver_myodbc3.h new file mode 100644 index 000000000000..98509d0c9cf7 --- /dev/null +++ b/databases/mysql-connector-odbc/files/patch-driver_myodbc3.h @@ -0,0 +1,22 @@ +--- driver/myodbc3.h.orig 2008-07-02 06:43:38.000000000 -0800 ++++ driver/myodbc3.h 2009-01-08 11:59:38.000000000 -0900 +@@ -161,7 +161,7 @@ + #define FLAG_MIN_DATE_TO_ZERO (1 << 25) /* Convert ODBC min date to 0000-00-00 on query */ + #define FLAG_MULTI_STATEMENTS (1 << 26) /* Allow multiple statements in a query */ + #define FLAG_COLUMN_SIZE_S32 (1 << 27) /* Limit column size to a signed 32-bit value (automatically set for ADO) */ +-#define FLAG_NO_BINARY_RESULT (1 << 28) /* Disables charset 63 for columns with empty org_table */ ++#define FLAG_NO_BINARY_RESULT (1 << 28) /* Disables charset 63 for columns with empty org_table */ + + /* We don't make any assumption about what the default may be. */ + #ifndef DEFAULT_TXN_ISOLATION +@@ -252,8 +252,8 @@ + SQLINTEGER ValueMax; + SQLLEN * actual_len; + SQLINTEGER value_length; +- bool alloced,used; +- bool real_param_done; ++ my_bool alloced,used; ++ my_bool real_param_done; + } PARAM_BIND; + + diff --git a/databases/mysql-connector-odbc/files/patch-driver_myutil.h b/databases/mysql-connector-odbc/files/patch-driver_myutil.h new file mode 100644 index 000000000000..f1511754f08e --- /dev/null +++ b/databases/mysql-connector-odbc/files/patch-driver_myutil.h @@ -0,0 +1,11 @@ +--- driver/myutil.h.orig 2008-04-11 01:58:44.000000000 -0800 ++++ driver/myutil.h 2009-01-08 11:50:41.000000000 -0900 +@@ -174,7 +174,7 @@ + SQLLEN *pcbValue); + SQLRETURN SQL_API my_SQLExtendedFetch(SQLHSTMT hstmt, SQLUSMALLINT fFetchType, + SQLROWOFFSET irow, SQLULEN *pcrow, +- SQLUSMALLINT FAR *rgfRowStatus, bool upd_status); ++ SQLUSMALLINT FAR *rgfRowStatus, my_bool upd_status); + SQLRETURN copy_stmt_error(STMT FAR *src, STMT FAR *dst); + int unireg_to_c_datatype(MYSQL_FIELD *field); + int default_c_type(int sql_data_type); diff --git a/databases/mysql-connector-odbc/files/patch-driver_results.c b/databases/mysql-connector-odbc/files/patch-driver_results.c new file mode 100644 index 000000000000..fa6b4e9ab290 --- /dev/null +++ b/databases/mysql-connector-odbc/files/patch-driver_results.c @@ -0,0 +1,11 @@ +--- driver/results.c.orig 2008-04-11 01:58:44.000000000 -0800 ++++ driver/results.c 2009-01-08 11:46:27.000000000 -0900 +@@ -1248,7 +1248,7 @@ + SQLROWOFFSET irow, + SQLULEN *pcrow, + SQLUSMALLINT FAR *rgfRowStatus, +- bool upd_status ) ++ my_bool upd_status ) + { + ulong rows_to_fetch; + long cur_row, max_row; -- cgit