ruby-staci 2.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +14 -0
  3. data/COPYING +30 -0
  4. data/COPYING_old +64 -0
  5. data/ChangeLog +3826 -0
  6. data/Makefile +92 -0
  7. data/NEWS +1194 -0
  8. data/README.md +66 -0
  9. data/dist-files +113 -0
  10. data/docs/bind-array-to-in_cond.md +38 -0
  11. data/docs/conflicts-local-connections-and-processes.md +98 -0
  12. data/docs/hanging-after-inactivity.md +63 -0
  13. data/docs/install-binary-package.md +44 -0
  14. data/docs/install-full-client.md +111 -0
  15. data/docs/install-instant-client.md +194 -0
  16. data/docs/install-on-osx.md +133 -0
  17. data/docs/ldap-auth-and-function-interposition.md +123 -0
  18. data/docs/number-type-mapping.md +79 -0
  19. data/docs/osx-install-dev-tools.png +0 -0
  20. data/docs/platform-specific-issues.md +164 -0
  21. data/docs/report-installation-issue.md +50 -0
  22. data/docs/timeout-parameters.md +94 -0
  23. data/ext/oci8/.document +18 -0
  24. data/ext/oci8/MANIFEST +18 -0
  25. data/ext/oci8/apiwrap.c.tmpl +178 -0
  26. data/ext/oci8/apiwrap.h.tmpl +61 -0
  27. data/ext/oci8/apiwrap.rb +96 -0
  28. data/ext/oci8/apiwrap.yml +1322 -0
  29. data/ext/oci8/attr.c +57 -0
  30. data/ext/oci8/bind.c +838 -0
  31. data/ext/oci8/connection_pool.c +216 -0
  32. data/ext/oci8/encoding.c +196 -0
  33. data/ext/oci8/env.c +139 -0
  34. data/ext/oci8/error.c +385 -0
  35. data/ext/oci8/extconf.rb +219 -0
  36. data/ext/oci8/hook_funcs.c +407 -0
  37. data/ext/oci8/lob.c +1278 -0
  38. data/ext/oci8/metadata.c +279 -0
  39. data/ext/oci8/object.c +919 -0
  40. data/ext/oci8/oci8.c +1058 -0
  41. data/ext/oci8/oci8.h +556 -0
  42. data/ext/oci8/oci8lib.c +704 -0
  43. data/ext/oci8/ocidatetime.c +506 -0
  44. data/ext/oci8/ocihandle.c +852 -0
  45. data/ext/oci8/ocinumber.c +1922 -0
  46. data/ext/oci8/oraconf.rb +1145 -0
  47. data/ext/oci8/oradate.c +670 -0
  48. data/ext/oci8/oranumber_util.c +352 -0
  49. data/ext/oci8/oranumber_util.h +24 -0
  50. data/ext/oci8/plthook.h +66 -0
  51. data/ext/oci8/plthook_elf.c +702 -0
  52. data/ext/oci8/plthook_osx.c +505 -0
  53. data/ext/oci8/plthook_win32.c +391 -0
  54. data/ext/oci8/post-config.rb +5 -0
  55. data/ext/oci8/stmt.c +448 -0
  56. data/ext/oci8/thread_util.c +81 -0
  57. data/ext/oci8/thread_util.h +18 -0
  58. data/ext/oci8/util.c +71 -0
  59. data/ext/oci8/win32.c +117 -0
  60. data/lib/.document +1 -0
  61. data/lib/dbd/STACI.rb +591 -0
  62. data/lib/oci8/.document +8 -0
  63. data/lib/oci8/bindtype.rb +333 -0
  64. data/lib/oci8/check_load_error.rb +146 -0
  65. data/lib/oci8/compat.rb +117 -0
  66. data/lib/oci8/connection_pool.rb +179 -0
  67. data/lib/oci8/cursor.rb +605 -0
  68. data/lib/oci8/datetime.rb +605 -0
  69. data/lib/oci8/encoding-init.rb +45 -0
  70. data/lib/oci8/encoding.yml +537 -0
  71. data/lib/oci8/metadata.rb +2148 -0
  72. data/lib/oci8/object.rb +641 -0
  73. data/lib/oci8/oci8.rb +756 -0
  74. data/lib/oci8/ocihandle.rb +591 -0
  75. data/lib/oci8/oracle_version.rb +153 -0
  76. data/lib/oci8/properties.rb +196 -0
  77. data/lib/oci8/version.rb +3 -0
  78. data/lib/ruby-staci.rb +1 -0
  79. data/lib/staci.rb +190 -0
  80. data/metaconfig +142 -0
  81. data/pre-distclean.rb +7 -0
  82. data/ruby-aci.gemspec +83 -0
  83. data/setup.rb +1342 -0
  84. data/test/README.md +37 -0
  85. data/test/config.rb +201 -0
  86. data/test/setup_test_object.sql +199 -0
  87. data/test/setup_test_package.sql +59 -0
  88. data/test/test_all.rb +56 -0
  89. data/test/test_appinfo.rb +62 -0
  90. data/test/test_array_dml.rb +333 -0
  91. data/test/test_bind_array.rb +70 -0
  92. data/test/test_bind_boolean.rb +99 -0
  93. data/test/test_bind_integer.rb +47 -0
  94. data/test/test_bind_raw.rb +45 -0
  95. data/test/test_bind_string.rb +105 -0
  96. data/test/test_bind_time.rb +177 -0
  97. data/test/test_break.rb +124 -0
  98. data/test/test_clob.rb +86 -0
  99. data/test/test_connection_pool.rb +124 -0
  100. data/test/test_connstr.rb +220 -0
  101. data/test/test_datetime.rb +585 -0
  102. data/test/test_dbi.rb +365 -0
  103. data/test/test_dbi_clob.rb +53 -0
  104. data/test/test_encoding.rb +103 -0
  105. data/test/test_error.rb +87 -0
  106. data/test/test_metadata.rb +2674 -0
  107. data/test/test_object.rb +546 -0
  108. data/test/test_oci8.rb +624 -0
  109. data/test/test_oracle_version.rb +68 -0
  110. data/test/test_oradate.rb +255 -0
  111. data/test/test_oranumber.rb +786 -0
  112. data/test/test_package_type.rb +981 -0
  113. data/test/test_properties.rb +17 -0
  114. data/test/test_rowid.rb +32 -0
  115. metadata +158 -0
@@ -0,0 +1,17 @@
1
+ require 'staci'
2
+ require File.dirname(__FILE__) + '/config'
3
+
4
+ class TestProperties < Minitest::Test
5
+ def test_tcp_keepalive_time
6
+ begin
7
+ oldval = STACI.properties[:tcp_keepalive_time]
8
+ begin
9
+ STACI.properties[:tcp_keepalive_time] = 600
10
+ assert(true)
11
+ ensure
12
+ STACI.properties[:tcp_keepalive_time] = oldval
13
+ end
14
+ rescue NotImplementedError
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,32 @@
1
+ require 'staci'
2
+ require File.dirname(__FILE__) + '/config'
3
+
4
+ class TestRowid < Minitest::Test
5
+
6
+ def setup
7
+ @conn = get_oci8_connection
8
+ end
9
+
10
+ def test_rowid
11
+ drop_table('test_table')
12
+ sql = <<-EOS
13
+ CREATE TABLE test_table (N NUMBER(38))
14
+ EOS
15
+ @conn.exec(sql)
16
+ cursor = @conn.parse("INSERT INTO test_table values(1)");
17
+ cursor.exec
18
+ rid1 = 1
19
+ #assert_instance_of(String, rid1)
20
+ cursor.close
21
+ rid2 = 1
22
+ @conn.exec('select rowid from test_table where rowid = :1', rid1) do |row|
23
+ rid2 = row[0]
24
+ end
25
+ assert_equal(rid2, rid1)
26
+ drop_table('test_table')
27
+ end
28
+
29
+ def teardown
30
+ @conn.logoff
31
+ end
32
+ end
metadata ADDED
@@ -0,0 +1,158 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby-staci
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.2.9
5
+ platform: ruby
6
+ authors:
7
+ - liu yongsheng
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-01-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: 'ruby-aci is a ruby interface for ShenTong using STACI API. '
14
+ email: liuyongsheng@shentongdata.com
15
+ executables: []
16
+ extensions:
17
+ - ext/oci8/extconf.rb
18
+ extra_rdoc_files:
19
+ - README.md
20
+ files:
21
+ - ".yardopts"
22
+ - COPYING
23
+ - COPYING_old
24
+ - ChangeLog
25
+ - Makefile
26
+ - NEWS
27
+ - README.md
28
+ - dist-files
29
+ - docs/bind-array-to-in_cond.md
30
+ - docs/conflicts-local-connections-and-processes.md
31
+ - docs/hanging-after-inactivity.md
32
+ - docs/install-binary-package.md
33
+ - docs/install-full-client.md
34
+ - docs/install-instant-client.md
35
+ - docs/install-on-osx.md
36
+ - docs/ldap-auth-and-function-interposition.md
37
+ - docs/number-type-mapping.md
38
+ - docs/osx-install-dev-tools.png
39
+ - docs/platform-specific-issues.md
40
+ - docs/report-installation-issue.md
41
+ - docs/timeout-parameters.md
42
+ - ext/oci8/.document
43
+ - ext/oci8/MANIFEST
44
+ - ext/oci8/apiwrap.c.tmpl
45
+ - ext/oci8/apiwrap.h.tmpl
46
+ - ext/oci8/apiwrap.rb
47
+ - ext/oci8/apiwrap.yml
48
+ - ext/oci8/attr.c
49
+ - ext/oci8/bind.c
50
+ - ext/oci8/connection_pool.c
51
+ - ext/oci8/encoding.c
52
+ - ext/oci8/env.c
53
+ - ext/oci8/error.c
54
+ - ext/oci8/extconf.rb
55
+ - ext/oci8/hook_funcs.c
56
+ - ext/oci8/lob.c
57
+ - ext/oci8/metadata.c
58
+ - ext/oci8/object.c
59
+ - ext/oci8/oci8.c
60
+ - ext/oci8/oci8.h
61
+ - ext/oci8/oci8lib.c
62
+ - ext/oci8/ocidatetime.c
63
+ - ext/oci8/ocihandle.c
64
+ - ext/oci8/ocinumber.c
65
+ - ext/oci8/oraconf.rb
66
+ - ext/oci8/oradate.c
67
+ - ext/oci8/oranumber_util.c
68
+ - ext/oci8/oranumber_util.h
69
+ - ext/oci8/plthook.h
70
+ - ext/oci8/plthook_elf.c
71
+ - ext/oci8/plthook_osx.c
72
+ - ext/oci8/plthook_win32.c
73
+ - ext/oci8/post-config.rb
74
+ - ext/oci8/stmt.c
75
+ - ext/oci8/thread_util.c
76
+ - ext/oci8/thread_util.h
77
+ - ext/oci8/util.c
78
+ - ext/oci8/win32.c
79
+ - lib/.document
80
+ - lib/dbd/STACI.rb
81
+ - lib/oci8/.document
82
+ - lib/oci8/bindtype.rb
83
+ - lib/oci8/check_load_error.rb
84
+ - lib/oci8/compat.rb
85
+ - lib/oci8/connection_pool.rb
86
+ - lib/oci8/cursor.rb
87
+ - lib/oci8/datetime.rb
88
+ - lib/oci8/encoding-init.rb
89
+ - lib/oci8/encoding.yml
90
+ - lib/oci8/metadata.rb
91
+ - lib/oci8/object.rb
92
+ - lib/oci8/oci8.rb
93
+ - lib/oci8/ocihandle.rb
94
+ - lib/oci8/oracle_version.rb
95
+ - lib/oci8/properties.rb
96
+ - lib/oci8/version.rb
97
+ - lib/ruby-staci.rb
98
+ - lib/staci.rb
99
+ - metaconfig
100
+ - pre-distclean.rb
101
+ - ruby-aci.gemspec
102
+ - setup.rb
103
+ - test/README.md
104
+ - test/config.rb
105
+ - test/setup_test_object.sql
106
+ - test/setup_test_package.sql
107
+ - test/test_all.rb
108
+ - test/test_appinfo.rb
109
+ - test/test_array_dml.rb
110
+ - test/test_bind_array.rb
111
+ - test/test_bind_boolean.rb
112
+ - test/test_bind_integer.rb
113
+ - test/test_bind_raw.rb
114
+ - test/test_bind_string.rb
115
+ - test/test_bind_time.rb
116
+ - test/test_break.rb
117
+ - test/test_clob.rb
118
+ - test/test_connection_pool.rb
119
+ - test/test_connstr.rb
120
+ - test/test_datetime.rb
121
+ - test/test_dbi.rb
122
+ - test/test_dbi_clob.rb
123
+ - test/test_encoding.rb
124
+ - test/test_error.rb
125
+ - test/test_metadata.rb
126
+ - test/test_object.rb
127
+ - test/test_oci8.rb
128
+ - test/test_oracle_version.rb
129
+ - test/test_oradate.rb
130
+ - test/test_oranumber.rb
131
+ - test/test_package_type.rb
132
+ - test/test_properties.rb
133
+ - test/test_rowid.rb
134
+ homepage: http://www.rubydoc.info/github/kubo/ruby-aci
135
+ licenses:
136
+ - BSD-2-Clause
137
+ metadata: {}
138
+ post_install_message:
139
+ rdoc_options: []
140
+ require_paths:
141
+ - lib
142
+ required_ruby_version: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: 1.9.1
147
+ required_rubygems_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ requirements: []
153
+ rubygems_version: 3.1.6
154
+ signing_key:
155
+ specification_version: 4
156
+ summary: Ruby interface for ShenTong using STACI API
157
+ test_files:
158
+ - test/test_all.rb