This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/include/tds_fdw.h b/include/tds_fdw.h | |
index 22a32b6..02ddbce 100644 | |
--- a/include/tds_fdw.h | |
+++ b/include/tds_fdw.h | |
@@ -22,10 +22,21 @@ | |
/* a column */ | |
+typedef union COL_VALUE | |
+{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/include/tds_fdw.h b/include/tds_fdw.h | |
index 40254f3..22a32b6 100644 | |
--- a/include/tds_fdw.h | |
+++ b/include/tds_fdw.h | |
@@ -70,10 +70,10 @@ FdwPlan* tdsPlanForeignScan(Oid foreigntableid, PlannerInfo *root, RelOptInfo *b | |
/* Helper functions */ | |
int tdsSetupConnection(TdsFdwOptionSet* option_set, LOGINREC *login, DBPROCESS **dbproc); | |
-int tdsGetRowCount(TdsFdwOptionSet* option_set, LOGINREC *login, DBPROCESS *dbproc); | |
-int tdsGetRowCountShowPlanAll(TdsFdwOptionSet* option_set, LOGINREC *login, DBPROCESS *dbproc); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/tds_fdw.c b/src/tds_fdw.c | |
index 7976c3b..64b6a0c 100644 | |
--- a/src/tds_fdw.c | |
+++ b/src/tds_fdw.c | |
@@ -989,7 +989,7 @@ char* tdsConvertToCString(DBPROCESS* dbproc, int srctype, const BYTE* src, DBINT | |
case SYBVARCHAR: | |
case SYBTEXT: | |
real_destlen = srclen + 1; /* the size of the array */ | |
- destlen = -1; /* the size to pass to dbconvert (-1 means to null terminate it) */ | |
+ destlen = -2; /* the size to pass to dbconvert (-2 means to null terminate it) */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOG: database system was shut down at 2015-09-18 20:59:57 UTC | |
LOG: database system is ready to accept connections | |
LOG: autovacuum launcher started | |
Showing memory statistics before row 1. | |
ExecutorState: 8192 total in 1 blocks; 2744 free (2 chunks); 5448 used | |
printtup: 0 total in 0 blocks; 0 free (0 chunks); 0 used | |
tds_fdw data: 8192 total in 1 blocks; 8112 free (0 chunks); 80 used | |
ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used | |
Showing memory statistics after row 1. | |
ExecutorState: 8192 total in 1 blocks; 2744 free (2 chunks); 5448 used |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOG: database system was shut down at 2015-09-18 12:40:50 UTC | |
LOG: database system is ready to accept connections | |
LOG: autovacuum launcher started | |
Showing memory statistics before row 1. | |
ExecutorState: 8192 total in 1 blocks; 2744 free (2 chunks); 5448 used | |
printtup: 0 total in 0 blocks; 0 free (0 chunks); 0 used | |
tds_fdw data: 8192 total in 1 blocks; 8112 free (0 chunks); 80 used | |
ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used | |
Showing memory statistics after row 1. | |
ExecutorState: 8192 total in 1 blocks; 2744 free (2 chunks); 5448 used |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOG: database system was shut down at 2015-09-17 13:02:15 UTC | |
LOG: autovacuum launcher started | |
LOG: database system is ready to accept connections | |
Showing memory statistics before row 1. | |
ExecutorState: 8192 total in 1 blocks; 2744 free (2 chunks); 5448 used | |
printtup: 0 total in 0 blocks; 0 free (0 chunks); 0 used | |
tds_fdw data: 8192 total in 1 blocks; 8112 free (0 chunks); 80 used | |
ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used | |
Showing memory statistics after row 1. | |
ExecutorState: 8192 total in 1 blocks; 2744 free (2 chunks); 5448 used |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOG: database system was shut down at 2015-09-16 14:26:21 UTC | |
LOG: database system is ready to accept connections | |
LOG: autovacuum launcher started | |
Showing memory statistics before row 1. | |
ExecutorState: 8192 total in 1 blocks; 2720 free (1 chunks); 5472 used | |
printtup: 0 total in 0 blocks; 0 free (0 chunks); 0 used | |
tds_fdw data: 8192 total in 1 blocks; 8112 free (0 chunks); 80 used | |
ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used | |
Showing memory statistics after row 1. | |
ExecutorState: 8192 total in 1 blocks; 2720 free (1 chunks); 5472 used |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOG: database system was shut down at 2015-09-16 14:36:47 UTC | |
LOG: autovacuum launcher started | |
LOG: database system is ready to accept connections | |
Showing memory statistics before row 1. | |
ExecutorState: 8192 total in 1 blocks; 2720 free (1 chunks); 5472 used | |
printtup: 0 total in 0 blocks; 0 free (0 chunks); 0 used | |
tds_fdw data: 8192 total in 1 blocks; 8112 free (0 chunks); 80 used | |
ExprContext: 0 total in 0 blocks; 0 free (0 chunks); 0 used | |
Showing memory statistics after row 1. | |
ExecutorState: 8192 total in 1 blocks; 2720 free (1 chunks); 5472 used |