ruby-odbc 0.9999 → 0.99991
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -0
- data/README +2 -2
- data/ext/extconf.rb +10 -0
- data/ext/odbc.c +6 -3
- data/ruby-odbc.gemspec +1 -1
- metadata +2 -2
data/ChangeLog
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
ODBC binding for Ruby
|
2
2
|
---------------------
|
3
3
|
|
4
|
+
Sun Apr 25 2010 version 0.99991 released
|
5
|
+
|
6
|
+
* detect HAVE_LONG_LONG for builds with unixODBC
|
7
|
+
* UTF-8 coding/decoding fix for range 0x80..0xBF
|
8
|
+
|
4
9
|
Thu Feb 18 2010 version 0.9999 released
|
5
10
|
|
6
11
|
* integrated Bosko Ivanisevic's fixes in ext/utf8/extconf.rb
|
data/README
CHANGED
data/ext/extconf.rb
CHANGED
@@ -98,6 +98,11 @@ elsif (testdlopen && PLATFORM !~ /(macos|darwin)/ && CONFIG["CC"] =~ /gcc/ && ha
|
|
98
98
|
$CPPFLAGS+=" -DHAVE_SQLCONFIGDATASOURCE"
|
99
99
|
$CPPFLAGS+=" -DHAVE_SQLINSTALLERERROR"
|
100
100
|
$CPPFLAGS+=" -DUSE_DLOPEN_FOR_ODBC_LIBS"
|
101
|
+
if defined? have_type then
|
102
|
+
if have_type("SQLBIGINT", "sqltypes.h", "-DHAVE_LONG_LONG") then
|
103
|
+
$CPPFLAGS+=" -DHAVE_LONG_LONG"
|
104
|
+
end
|
105
|
+
end
|
101
106
|
else
|
102
107
|
have_library("odbc", "SQLAllocConnect") ||
|
103
108
|
have_library("iodbc", "SQLAllocConnect")
|
@@ -107,6 +112,11 @@ else
|
|
107
112
|
have_library("iodbcinst", "SQLConfigDataSource"))
|
108
113
|
$have_odbcinst_h &&
|
109
114
|
have_func("SQLInstallerError", "odbcinst.h")
|
115
|
+
if defined? have_type then
|
116
|
+
if have_type("SQLBIGINT", "sqltypes.h", "-DHAVE_LONG_LONG") then
|
117
|
+
$CPPFLAGS+=" -DHAVE_LONG_LONG"
|
118
|
+
end
|
119
|
+
end
|
110
120
|
end
|
111
121
|
|
112
122
|
create_makefile("odbc")
|
data/ext/odbc.c
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
* and redistribution of this file and for a
|
9
9
|
* DISCLAIMER OF ALL WARRANTIES.
|
10
10
|
*
|
11
|
-
* $Id: odbc.c,v 1.
|
11
|
+
* $Id: odbc.c,v 1.62 2010/04/25 12:26:37 chw Exp chw $
|
12
12
|
*/
|
13
13
|
|
14
14
|
#undef ODBCVER
|
@@ -363,7 +363,7 @@ mkutf(char *dest, SQLWCHAR *src, int len)
|
|
363
363
|
if (sizeof (SQLWCHAR) == (2 * sizeof (char))) {
|
364
364
|
c &= 0xffff;
|
365
365
|
}
|
366
|
-
if (c <
|
366
|
+
if (c < 0x80) {
|
367
367
|
*cp++ = c;
|
368
368
|
} else if (c < 0x800) {
|
369
369
|
*cp++ = 0xc0 | ((c >> 6) & 0x1f);
|
@@ -491,9 +491,12 @@ uc_from_utf(unsigned char *str, int len)
|
|
491
491
|
while (str < strend) {
|
492
492
|
unsigned char c = str[0];
|
493
493
|
|
494
|
-
if (c <
|
494
|
+
if (c < 0x80) {
|
495
495
|
uc[i++] = c;
|
496
496
|
++str;
|
497
|
+
} else if (c <= 0xc1 || (c >= 0xf5 && c <= 0xff)) {
|
498
|
+
/* illegal, ignored */
|
499
|
+
++str;
|
497
500
|
} else if (c < 0xe0) {
|
498
501
|
if ((str[1] & 0xc0) == 0x80) {
|
499
502
|
unsigned long t = ((c & 0x1f) << 6) | (str[1] & 0x3f);
|
data/ruby-odbc.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-odbc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: "0.
|
4
|
+
version: "0.99991"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Werner
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-04-25 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|