Skip to content

Commit f806421

Browse files
author
Byron Nikolaidis
committed
Update driver to 6-40-0006
1 parent 519ad24 commit f806421

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/interfaces/odbc/convert.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ char tempBuf[TEXT_FIELD_SIZE+5];
319319
len = stmt->bindings[stmt->current_col].data_left;
320320
}
321321
else
322-
stmt->bindings[stmt->current_col].data_left = strlen(value);
322+
stmt->bindings[stmt->current_col].data_left = strlen(ptr);
323323
}
324324

325325
if (cbValueMax > 0) {
@@ -922,7 +922,7 @@ int lobj_fd, retval;
922922
/* the oid of the large object -- just put that in for the
923923
parameter marker -- the data has already been sent to the large object
924924
*/
925-
sprintf(param_string, "%d", lobj_oid);
925+
sprintf(param_string, "'%d'", lobj_oid);
926926
strcpy(&new_statement[npos], param_string);
927927
npos += strlen(param_string);
928928

src/interfaces/odbc/psqlodbc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ typedef UInt4 Oid;
3939

4040
#define DRIVERNAME "PostgreSQL ODBC"
4141
#define DBMS_NAME "PostgreSQL"
42-
#define DBMS_VERSION "06.40.0004 PostgreSQL 6.4"
43-
#define POSTGRESDRIVERVERSION "06.40.0004"
42+
#define DBMS_VERSION "06.40.0006 PostgreSQL 6.4"
43+
#define POSTGRESDRIVERVERSION "06.40.0006"
4444

4545
#ifdef WIN32
4646
#define DRIVER_FILE_NAME "PSQLODBC.DLL"
@@ -154,7 +154,7 @@ typedef struct QueryInfo_ {
154154
#define OID_ATTNUM -2 /* the attnum in pg_index of the oid */
155155

156156
/* sizes */
157-
#define TEXT_FIELD_SIZE 4094 /* size of text fields (not including null term) */
157+
#define TEXT_FIELD_SIZE 8190 /* size of text fields (not including null term) */
158158
#define NAME_FIELD_SIZE 32 /* size of name fields */
159159
#define MAX_VARCHAR_SIZE 254 /* maximum size of a varchar (not including null term) */
160160

src/interfaces/odbc/psqlodbc.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ END
204204
//
205205

206206
VS_VERSION_INFO VERSIONINFO
207-
FILEVERSION 6,40,0,4
208-
PRODUCTVERSION 6,40,0,4
207+
FILEVERSION 6,40,0,6
208+
PRODUCTVERSION 6,40,0,6
209209
FILEFLAGSMASK 0x3L
210210
#ifdef _DEBUG
211211
FILEFLAGS 0x1L
@@ -223,12 +223,12 @@ BEGIN
223223
VALUE "Comments", "PostgreSQL ODBC driver for Windows 95\0"
224224
VALUE "CompanyName", "Insight Distribution Systems\0"
225225
VALUE "FileDescription", "PostgreSQL Driver\0"
226-
VALUE "FileVersion", " 6.40.0004\0"
226+
VALUE "FileVersion", " 6.40.0006\0"
227227
VALUE "InternalName", "psqlodbc\0"
228228
VALUE "LegalTrademarks", "ODBC(TM) is a trademark of Microsoft Corporation. Microsoft� is a registered trademark of Microsoft Corporation. Windows(TM) is a trademark of Microsoft Corporation.\0"
229229
VALUE "OriginalFilename", "psqlodbc.dll\0"
230230
VALUE "ProductName", "Microsoft Open Database Connectivity\0"
231-
VALUE "ProductVersion", " 6.40.0004\0"
231+
VALUE "ProductVersion", " 6.40.0006\0"
232232
END
233233
END
234234
BLOCK "VarFileInfo"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy