ruby-odbc 0.99998 → 0.99999
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ChangeLog +7 -0
- data/README +2 -2
- data/doc/odbc.html +18 -11
- data/ext/extconf.rb +3 -3
- data/ext/odbc.c +11 -1
- data/ext/utf8/extconf.rb +3 -3
- data/ruby-odbc.gemspec +1 -1
- metadata +21 -24
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ebe50088f7b79d16a5dc300d6b07890b808a57c6
|
4
|
+
data.tar.gz: 5bfa7a5595c786bcf6125b4bb43f5e0c1312b9cd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f5ab42fe5a650e2d88cda3106ec3beea1e53bdc651ef6b9ca8848d61904c5b7a4b86e89373e3f392c971ad5cdc8cf3b0423d4163349fa62b337dc2a6cb502c6d
|
7
|
+
data.tar.gz: 3f0fd86fce0f7a08cb59913483a4f494a24dcbc4cfb00eceffeb822a63eb7fdee644a6e13ba5e0a83e7375ed3e9c5f88c4f2f36e778e8e52fc643a797aa4bb56
|
data/ChangeLog
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
ODBC binding for Ruby
|
2
2
|
---------------------
|
3
3
|
|
4
|
+
Wed Feb 28 2018 version 0.99999 released
|
5
|
+
|
6
|
+
* update to compile with newer Ruby releases, thanks
|
7
|
+
Lars Kanis for patch
|
8
|
+
* added ODBC::Database.login_timeout to get/set the
|
9
|
+
SQL_LOGIN_TIMEOUT connection attribute
|
10
|
+
|
4
11
|
Wed Feb 15 2017 version 0.99998 released
|
5
12
|
|
6
13
|
* minor update to compile with Ruby 2.4, thangs to Kevin Deisz
|
data/README
CHANGED
data/doc/odbc.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
2
2
|
"http://www.w3.org/TR/html4/strict.dtd">
|
3
3
|
<html lang="en">
|
4
|
-
<head>
|
4
|
+
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
6
6
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
7
7
|
<meta name="Keywords" lang="en" content="ODBC Binding for Ruby">
|
@@ -14,7 +14,7 @@
|
|
14
14
|
}
|
15
15
|
address { text-align: right }
|
16
16
|
div.lastmodifed { text-align: right }
|
17
|
-
div.language { text-align: right }
|
17
|
+
div.language { text-align: right }
|
18
18
|
pre {
|
19
19
|
white-space: pre;
|
20
20
|
background-color: antiquewhite;
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<body>
|
28
28
|
<h1><a name="reference">Ruby ODBC Reference</a></h1>
|
29
29
|
<div class = "lastmodifed">
|
30
|
-
Last update: Wed,
|
30
|
+
Last update: Wed, 28 February 2018
|
31
31
|
</div>
|
32
32
|
<hr>
|
33
33
|
<div>
|
@@ -73,8 +73,10 @@
|
|
73
73
|
<dd>Gets or sets the process-wide connection pooling attribute.
|
74
74
|
<dt><a name="ODBC::to_time1">
|
75
75
|
<code>to_time(<var>timestamp</var>)</code></a>
|
76
|
-
<dt><a name="ODBC::to_time2"
|
77
|
-
|
76
|
+
<dt><a name="ODBC::to_time2">
|
77
|
+
<code>to_time(<var>date</var>,[<var>time</var>])</code></a>
|
78
|
+
<dt><a name="ODBC::to_time3">
|
79
|
+
<code>to_time(<var>time</var>,[<var>date</var>])</code></a>
|
78
80
|
<dd>Creates a <code>Time</code> object from the specified arguments,
|
79
81
|
which must be <a href="#ODBC::Date">ODBC::Date</a>,
|
80
82
|
<a href="#ODBC::Time">ODBC::Time</a>, or
|
@@ -89,7 +91,7 @@
|
|
89
91
|
[{|<var>dbc</var>| <var>block</var>}]</code></a>
|
90
92
|
<dd>If no block is specified, a connection to the given data source
|
91
93
|
is established and a <a href="#ODBC::Database">ODBC::Database</a>
|
92
|
-
object is returned, identifying that connection. Otherwise,
|
94
|
+
object is returned, identifying that connection. Otherwise,
|
93
95
|
the block is executed with the database object. When the block
|
94
96
|
is finished, the connection is automatically released.
|
95
97
|
Options are:
|
@@ -383,10 +385,11 @@
|
|
383
385
|
<a href="#dbc_get_option"><code>ODBC::Database.get_option</code></a>,
|
384
386
|
<a href="#dbc_set_option"><code>ODBC::Database.set_option</code></a>,
|
385
387
|
<a href="#stmt_get_option"><code>ODBC::Statement.get_option</code></a>,
|
386
|
-
and
|
388
|
+
and
|
387
389
|
<a href="#stmt_set_option"><code>ODBC::Statement.set_option</code></a>
|
388
390
|
yielding integers:
|
389
391
|
<dd><var>SQL_AUTOCOMMIT</var>,
|
392
|
+
<var>SQL_LOGIN_TIMEOUT</var>,
|
390
393
|
<var>SQL_CONCURRENCY</var>,
|
391
394
|
<var>SQL_QUERY_TIMEOUT</var>,
|
392
395
|
<var>SQL_MAX_ROWS</var>,
|
@@ -591,7 +594,7 @@
|
|
591
594
|
of the underlying ODBC function <code>SQLGetInfo()</code> as a
|
592
595
|
specific Ruby type the optional parameter <var>sql_type</var>
|
593
596
|
can be given as e.g.
|
594
|
-
<code>ODBC::SQL_SMALLINT</code> (yielding integer),
|
597
|
+
<code>ODBC::SQL_SMALLINT</code> (yielding integer),
|
595
598
|
<code>ODBC::SQL_INTEGER</code> (yielding integer), and
|
596
599
|
<code>ODBC::SQL_CHAR</code> (yielding string).
|
597
600
|
<dt><a name="run"><code>run(<var>sql</var>[,<var>args...</var>])</code></a>
|
@@ -668,9 +671,13 @@ aproc.statement.drop</pre>
|
|
668
671
|
<dt><a name="timeout"><code>timeout[=<var>intval</var>]</code></a>
|
669
672
|
<dd>Sets or queries the number of seconds to wait for queries to
|
670
673
|
execute on the connection before returning.
|
674
|
+
<dt><a name="login_timeout">
|
675
|
+
<code>login_timeout[=<var>intval</var>]</code></a>
|
676
|
+
<dd>Sets or queries the number of seconds to wait for a login to
|
677
|
+
complete on the connection before returning.
|
671
678
|
<dt><a name="maxlength"><code>maxlength[=<var>intval</var>]</code></a>
|
672
679
|
<dd>Sets or queries the maximum amount of data that will be returned
|
673
|
-
|
680
|
+
from a character or binary column.
|
674
681
|
<dt><a name="cursortype">
|
675
682
|
<code>cursortype[=<var>intval</var>]</code></a>
|
676
683
|
<dd>Sets or queries the cursor type used for fetches.
|
@@ -1262,7 +1269,7 @@ out_value = stmt.param_output_value(2);</pre>
|
|
1262
1269
|
<dd>Queries or sets attributes in the <var>attrs</var> Hash of the
|
1263
1270
|
ODBC driver object. The <var>key</var>s and <var>value</var>s
|
1264
1271
|
should be Strings.
|
1265
|
-
</dl>
|
1272
|
+
</dl>
|
1266
1273
|
<h3>singleton methods:</h3>
|
1267
1274
|
<dl>
|
1268
1275
|
<dt><a name="ODBC::Driver.new"><code>new</code></a>
|
@@ -1291,7 +1298,7 @@ out_value = stmt.param_output_value(2);</pre>
|
|
1291
1298
|
<a href="#ODBC::Statement">ODBC::Statement</a>.
|
1292
1299
|
<dt><code>[[<var>args*</var>]]</code>
|
1293
1300
|
<dd>Synonym for <code>call</code>.
|
1294
|
-
</dl>
|
1301
|
+
</dl>
|
1295
1302
|
</div>
|
1296
1303
|
<div>
|
1297
1304
|
<hr>
|
data/ext/extconf.rb
CHANGED
@@ -124,9 +124,9 @@ if PLATFORM =~ /mswin32/ then
|
|
124
124
|
have_func("SQLInstallerError", "odbcinst.h")
|
125
125
|
# mingw untested !!!
|
126
126
|
elsif PLATFORM =~ /(mingw|cygwin)/ then
|
127
|
-
have_library("odbc32"
|
128
|
-
have_library("odbccp32"
|
129
|
-
have_library("user32"
|
127
|
+
have_library("odbc32")
|
128
|
+
have_library("odbccp32")
|
129
|
+
have_library("user32")
|
130
130
|
elsif (testdlopen && PLATFORM !~ /(macos|darwin)/ && CONFIG["CC"] =~ /gcc/ && have_func("dlopen", "dlfcn.h") && have_library("dl", "dlopen")) then
|
131
131
|
$LDFLAGS+=" -Wl,-init -Wl,ruby_odbc_init -Wl,-fini -Wl,ruby_odbc_fini"
|
132
132
|
$CPPFLAGS+=" -DHAVE_SQLCONFIGDATASOURCE"
|
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.79 2018/02/28 15:15:24 chw Exp chw $
|
12
12
|
*/
|
13
13
|
|
14
14
|
#undef ODBCVER
|
@@ -5212,6 +5212,7 @@ static struct {
|
|
5212
5212
|
|
5213
5213
|
/* yielding ints */
|
5214
5214
|
OPT_CONST_INT(SQL_AUTOCOMMIT, OPT_LEVEL_DBC),
|
5215
|
+
OPT_CONST_INT(SQL_LOGIN_TIMEOUT, OPT_LEVEL_DBC),
|
5215
5216
|
OPT_CONST_INT(SQL_NOSCAN, OPT_LEVEL_BOTH),
|
5216
5217
|
OPT_CONST_INT(SQL_CONCURRENCY, OPT_LEVEL_BOTH),
|
5217
5218
|
OPT_CONST_INT(SQL_QUERY_TIMEOUT, OPT_LEVEL_BOTH),
|
@@ -5340,6 +5341,7 @@ do_option(int argc, VALUE *argv, VALUE self, int isstmt, int op)
|
|
5340
5341
|
(RTEST(val) ? SQL_NOSCAN_ON : SQL_NOSCAN_OFF);
|
5341
5342
|
break;
|
5342
5343
|
|
5344
|
+
case SQL_LOGIN_TIMEOUT:
|
5343
5345
|
case SQL_CONCURRENCY:
|
5344
5346
|
case SQL_QUERY_TIMEOUT:
|
5345
5347
|
case SQL_MAX_ROWS:
|
@@ -5399,6 +5401,12 @@ dbc_timeout(int argc, VALUE *argv, VALUE self)
|
|
5399
5401
|
return do_option(argc, argv, self, 0, SQL_QUERY_TIMEOUT);
|
5400
5402
|
}
|
5401
5403
|
|
5404
|
+
static VALUE
|
5405
|
+
dbc_login_timeout(int argc, VALUE *argv, VALUE self)
|
5406
|
+
{
|
5407
|
+
return do_option(argc, argv, self, 0, SQL_LOGIN_TIMEOUT);
|
5408
|
+
}
|
5409
|
+
|
5402
5410
|
static VALUE
|
5403
5411
|
dbc_maxlength(int argc, VALUE *argv, VALUE self)
|
5404
5412
|
{
|
@@ -9252,6 +9260,8 @@ Init_odbc()
|
|
9252
9260
|
rb_define_method(Cdbc, "maxrows=", dbc_maxrows, -1);
|
9253
9261
|
rb_define_method(Cdbc, "timeout", dbc_timeout, -1);
|
9254
9262
|
rb_define_method(Cdbc, "timeout=", dbc_timeout, -1);
|
9263
|
+
rb_define_method(Cdbc, "login_timeout", dbc_login_timeout, -1);
|
9264
|
+
rb_define_method(Cdbc, "login_timeout=", dbc_login_timeout, -1);
|
9255
9265
|
rb_define_method(Cdbc, "maxlength", dbc_maxlength, -1);
|
9256
9266
|
rb_define_method(Cdbc, "maxlength=", dbc_maxlength, -1);
|
9257
9267
|
rb_define_method(Cdbc, "rowsetsize", dbc_rowsetsize, -1);
|
data/ext/utf8/extconf.rb
CHANGED
@@ -113,9 +113,9 @@ if PLATFORM =~ /mswin32/ then
|
|
113
113
|
have_func("SQLInstallerError", "odbcinst.h")
|
114
114
|
have_func("SQLInstallerErrorW", "odbcinst.h")
|
115
115
|
elsif PLATFORM =~ /(mingw|cygwin)/ then
|
116
|
-
have_library("odbc32"
|
117
|
-
have_library("odbccp32"
|
118
|
-
have_library("user32"
|
116
|
+
have_library("odbc32")
|
117
|
+
have_library("odbccp32")
|
118
|
+
have_library("user32")
|
119
119
|
header = ["windows.h", "odbcinst.h"]
|
120
120
|
have_func("SQLConfigDataSourceW", header)
|
121
121
|
have_func("SQLWriteFileDSNW", header)
|
data/ruby-odbc.gemspec
CHANGED
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-odbc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
5
|
-
prerelease:
|
4
|
+
version: '0.99999'
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Christian Werner
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2018-02-28 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description:
|
15
14
|
email: chw @nospam@ ch-werner.de
|
@@ -25,53 +24,51 @@ extra_rdoc_files:
|
|
25
24
|
- doc/odbc.html
|
26
25
|
files:
|
27
26
|
- COPYING
|
27
|
+
- ChangeLog
|
28
|
+
- GPL
|
29
|
+
- MANIFEST
|
30
|
+
- README
|
31
|
+
- doc/odbc.html
|
32
|
+
- ext/extconf.rb
|
33
|
+
- ext/init.c
|
28
34
|
- ext/odbc.c
|
29
|
-
- ext/utf8/odbc.c
|
30
35
|
- ext/utf8/extconf.rb
|
31
36
|
- ext/utf8/init.c
|
32
|
-
- ext/
|
33
|
-
- ext/init.c
|
34
|
-
- ruby-odbc.gemspec
|
35
|
-
- README
|
37
|
+
- ext/utf8/odbc.c
|
36
38
|
- lib/cqgen.rb
|
37
|
-
-
|
38
|
-
- GPL
|
39
|
-
- ChangeLog
|
40
|
-
- doc/odbc.html
|
41
|
-
- ruby-odbc-0.99998.gem
|
42
|
-
- test/40update.rb
|
43
|
-
- test/10create_table.rb
|
44
|
-
- test/70close.rb
|
39
|
+
- ruby-odbc.gemspec
|
45
40
|
- test/00connect.rb
|
41
|
+
- test/10create_table.rb
|
46
42
|
- test/20insert.rb
|
43
|
+
- test/30select.rb
|
44
|
+
- test/40update.rb
|
47
45
|
- test/45delete.rb
|
48
|
-
- test/utf8/test.rb
|
49
46
|
- test/50drop_table.rb
|
50
|
-
- test/
|
47
|
+
- test/70close.rb
|
51
48
|
- test/test.rb
|
49
|
+
- test/utf8/test.rb
|
52
50
|
homepage: http://www.ch-werner.de/rubyodbc
|
53
51
|
licenses: []
|
52
|
+
metadata: {}
|
54
53
|
post_install_message:
|
55
54
|
rdoc_options: []
|
56
55
|
require_paths:
|
57
56
|
- lib
|
58
57
|
- lib
|
59
58
|
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
-
none: false
|
61
59
|
requirements:
|
62
|
-
- -
|
60
|
+
- - ">="
|
63
61
|
- !ruby/object:Gem::Version
|
64
62
|
version: '0'
|
65
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
64
|
requirements:
|
68
|
-
- -
|
65
|
+
- - ">="
|
69
66
|
- !ruby/object:Gem::Version
|
70
67
|
version: '0'
|
71
68
|
requirements: []
|
72
69
|
rubyforge_project:
|
73
|
-
rubygems_version:
|
70
|
+
rubygems_version: 2.4.5
|
74
71
|
signing_key:
|
75
|
-
specification_version:
|
72
|
+
specification_version: 4
|
76
73
|
summary: ODBC binding for Ruby
|
77
74
|
test_files: []
|