File: patch_20060304_steve.patch

package info (click to toggle)
rodbc 1.3-16-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,052 kB
  • sloc: ansic: 1,204; makefile: 4; sh: 1
file content (57 lines) | stat: -rw-r--r-- 1,987 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
diff -Nru /tmp/KeP9uZ3ItY/rodbc-1.1.5/debian/changelog /tmp/W7l6P0uH3P/rodbc-1.1.5/debian/changelog
--- /tmp/KeP9uZ3ItY/rodbc-1.1.5/debian/changelog	2006-03-04 12:45:05.000000000 -0800
+++ /tmp/W7l6P0uH3P/rodbc-1.1.5/debian/changelog	2006-03-04 12:45:07.000000000 -0800
@@ -1,3 +1,10 @@
+rodbc (1.1.5-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix a handful of SQL types for 64-bit compatibility
+
+ -- Steve Langasek <vorlon@debian.org>  Sat,  4 Mar 2006 02:09:39 -0800
+
 rodbc (1.1.5-1) unstable; urgency=low
 
   * New upstream release
diff -Nru /tmp/KeP9uZ3ItY/rodbc-1.1.5/debian/rules /tmp/W7l6P0uH3P/rodbc-1.1.5/debian/rules
--- /tmp/KeP9uZ3ItY/rodbc-1.1.5/debian/rules	2006-03-04 12:45:05.000000000 -0800
+++ /tmp/W7l6P0uH3P/rodbc-1.1.5/debian/rules	2006-03-04 12:45:07.000000000 -0800
@@ -6,6 +6,9 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/langcore.mk
 
+CPPFLAGS := -DBUILD_REAL_64_BIT_MODE
+export CPPFLAGS
+
 ## We need the CRAN (upstream) name 
 cranName	:= $(shell grep Package: DESCRIPTION | cut -f2 -d" ")
 ## and we need to build a Debian Policy-conformant lower-case package name
diff -Nru /tmp/KeP9uZ3ItY/rodbc-1.1.5/src/RODBC.c /tmp/W7l6P0uH3P/rodbc-1.1.5/src/RODBC.c
--- /tmp/KeP9uZ3ItY/rodbc-1.1.5/src/RODBC.c	2005-08-05 23:32:57.000000000 -0700
+++ /tmp/W7l6P0uH3P/rodbc-1.1.5/src/RODBC.c	2006-03-04 12:45:07.000000000 -0800
@@ -53,7 +53,7 @@
     SQLCHAR	ColName[256];
     SQLSMALLINT	NameLength;
     SQLSMALLINT	DataType;
-    SQLUINTEGER	ColSize;
+    SQLULEN	ColSize;
     SQLSMALLINT	DecimalDigits;
     SQLSMALLINT	Nullable;
     char	*pData;
@@ -61,7 +61,7 @@
     SQLREAL	R4Data;
     SQLINTEGER	IData;
     SQLSMALLINT	I2Data;
-    SQLINTEGER	IndPtr;
+    SQLLEN	IndPtr;
 } COLUMNS;
 
 typedef struct mess {
@@ -74,7 +74,7 @@
     SQLHDBC	hDbc;
     SQLHSTMT	hStmt;
     int		fStmt;
-    SQLINTEGER 	nRows;
+    SQLLEN 	nRows;
     SQLSMALLINT	nColumns;
     int		channel;
     int         id;