Commit af700146 authored by Hiroshi Inoue's avatar Hiroshi Inoue

Fix a complie error on Windows platform.

parent 34fd5088
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
*/ */
/* Multibyte support Eiji Tokuya 2001-03-15 */ /* Multibyte support Eiji Tokuya 2001-03-15 */
#include "convert.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
...@@ -37,6 +35,7 @@ ...@@ -37,6 +35,7 @@
#include <sqlext.h> #include <sqlext.h>
#endif #endif
#include "convert.h"
#include <time.h> #include <time.h>
#include <math.h> #include <math.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -939,7 +938,7 @@ into_table_from(const char *stmt) ...@@ -939,7 +938,7 @@ into_table_from(const char *stmt)
/* /*
* This function inserts parameters into an SQL statements. * This function inserts parameters into an SQL statements.
* It will also modify a SELECT statement for use with declare/fetch cursors. * It will also modify a SELECT statement for use with declare/fetch cursors.
* This function does a dynamic memory allocation to get rid of query siz elimit! * This function does a dynamic memory allocation to get rid of query size limit!
*/ */
int int
copy_statement_with_parameters(StatementClass *stmt) copy_statement_with_parameters(StatementClass *stmt)
...@@ -961,8 +960,7 @@ copy_statement_with_parameters(StatementClass *stmt) ...@@ -961,8 +960,7 @@ copy_statement_with_parameters(StatementClass *stmt)
time_t t = time(NULL); time_t t = time(NULL);
struct tm *tim; struct tm *tim;
SDWORD used; SDWORD used;
char *buffer, char *buffer, *buf;
*buf;
BOOL in_quote = FALSE, in_dquote = FALSE, in_escape = FALSE; BOOL in_quote = FALSE, in_dquote = FALSE, in_escape = FALSE;
Oid lobj_oid; Oid lobj_oid;
int lobj_fd, int lobj_fd,
......
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
#include "psqlodbc.h" #include "psqlodbc.h"
#include "isql.h"
/* copy_and_convert results */ /* copy_and_convert results */
#define COPY_OK 0 #define COPY_OK 0
#define COPY_UNSUPPORTED_TYPE 1 #define COPY_UNSUPPORTED_TYPE 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment