transactd 3.1.0-x86-mswin32-100 → 3.2.0-x86-mswin32-100

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4c734af1505593cbcb0ae5bd29b39f9cf8f43a0
4
- data.tar.gz: 44495611def4f4b3ef3733c48d30cf77b1e0f424
3
+ metadata.gz: 7f090b59878cbe1e21ead3bc24fdc47bc1c55016
4
+ data.tar.gz: 168ed24b6c89f608160f5989f4a4b4f3d0301a2e
5
5
  SHA512:
6
- metadata.gz: d0c23d5b68233bd73be52d7af638c1a5dc9cae4137c9e267c53dd94451c7c0718cc854c20fa0d9cf8b9a1f038f959b48167ccc957b166a090307d020c8800eef
7
- data.tar.gz: dd574553c439b058ec29444c87f7416e6cc4c9ffe0f776cf3a9e25d86e889a39cff686a4b82b22781047c6f69b3e8569fe998a4c60d71f83cb8e080ac9fe89f4
6
+ metadata.gz: 400343ddd72aee54341eb60333b1c4c2e3484b37ae95c9523a5cc0b7013161566ac8d93fe66febc6a84f7eb708b9cefc36d6287532d278763e737da5da049523
7
+ data.tar.gz: 299262b1f988a062dbfdd17fa4b72c5103daa0a3b7523a9ae88da12b6cf6275210834acf5c6079c3442cfc1d29c7e87af22b34eb77e9825e1328561e4ad48c84
data/bin/2.0/transactd.so CHANGED
Binary file
data/bin/2.1/transactd.so CHANGED
Binary file
data/bin/2.2/transactd.so CHANGED
Binary file
data/bin/2.3/transactd.so CHANGED
Binary file
Binary file
@@ -689,6 +689,8 @@ describe Transactd, 'V3Features' do
689
689
  expect(bits[62]).to eq true
690
690
  expect(bits[11]).to eq false
691
691
  expect(bits[13]).to eq false
692
+ tb.close()
693
+ db.close()
692
694
  end
693
695
 
694
696
  it 'bitset' do
@@ -754,6 +756,8 @@ describe Transactd, 'V3Features' do
754
756
  expect(rs[3]['bit32'].isNull()).to eq true
755
757
  expect(rs[3]['bit64'].isNull()).to eq true
756
758
  ats.release()
759
+ db.dropTable(SEB_TABLENAME);
760
+ expect(db.stat()).to eq 0
757
761
  db.close()
758
762
  end
759
763
  it 'snapshot' do
@@ -771,4 +775,84 @@ describe Transactd, 'V3Features' do
771
775
  db.endSnapshot();
772
776
  db.close()
773
777
  end
778
+ it 'get sql' do
779
+ db = Transactd::Database.new()
780
+ openDatabase(db)
781
+ db.createTable("create view idlessthan5 as select * from user where id < 5")
782
+ view = db.getCreateViewSql("idlessthan5")
783
+ expect(view.include?("idlessthan5")).to eq true
784
+ expect(view.include?("名前")).to eq true
785
+ #puts("view" + view)
786
+ tb = db.openTable("user")
787
+ expect(db.stat()).to eq 0
788
+ sql = tb.getCreateSql()
789
+ #puts("sql" + sql)
790
+ expect(sql.include?("CREATE TABLE")).to eq true
791
+ expect(sql.include?("名前")).to eq true
792
+ tb.close()
793
+ db.close()
794
+ end
795
+ it 'create associate' do
796
+ db = Transactd::Database.new()
797
+ openDatabase(db)
798
+ dba = db.createAssociate()
799
+ expect(db.stat()).to eq 0
800
+ expect(dba.isAssociate()).to eq true
801
+ dba.close()
802
+ db.close()
803
+ end
804
+ it 'connMgr' do
805
+ # other database connection
806
+ db_other = Transactd::Database.new()
807
+ openDatabase(db_other)
808
+ tb_other = db_other.openTable("user")
809
+ expect(db_other.stat()).to eq 0
810
+ # connMgr connection
811
+ db = Transactd::Database.new()
812
+ mgr = Transactd::ConnMgr.new(db)
813
+ mgr.connect(db_other.uri())
814
+ expect(mgr.stat()).to eq 0
815
+ # connections
816
+ recs = mgr.connections()
817
+ expect(mgr.stat()).to eq 0
818
+ expect(recs.size()).to eq 1
819
+ # inUseDatabases
820
+ recs = mgr.inUseDatabases(recs[0].conId)
821
+ expect(mgr.stat()).to eq 0
822
+ expect(recs.size()).to eq 1
823
+ # inUseTables
824
+ recs = mgr.inUseTables(recs[0].conId, recs[0].db)
825
+ expect(mgr.stat()).to eq 0
826
+ expect(recs.size()).to eq 2
827
+ # tables, views
828
+ recs = mgr.tables("test_v3")
829
+ expect(mgr.stat()).to eq 0
830
+ recs1 = mgr.views("test_v3")
831
+ expect(mgr.stat()).to eq 0
832
+ expect(recs.size()).to eq 3
833
+ expect(recs1.size()).to eq 1
834
+ expect(recs1[0].name).to eq "idlessthan5"
835
+ # schemaTables
836
+ recs = mgr.schemaTables("test_v3")
837
+ expect(mgr.stat()).to eq 0
838
+ expect(recs.size()).to eq 1
839
+ expect(recs[0].name).to eq "test"
840
+ # databases
841
+ recs = mgr.databases()
842
+ expect(mgr.stat()).to eq 0
843
+ size = recs.size()
844
+ Transactd::ConnMgr::removeSystemDb(recs)
845
+ expect(mgr.stat()).to eq 0
846
+ expect(recs.size()).not_to eq size
847
+ # slaveStatus
848
+ recs = mgr.slaveStatus()
849
+ expect(mgr.stat()).to eq 0
850
+ for i in 0...recs.size() do
851
+ puts (Transactd::ConnMgr::slaveStatusName(i) + "\t" + recs[i].value)
852
+ end
853
+ mgr.disconnect()
854
+ expect(mgr.stat()).to eq 0
855
+ tb_other.close()
856
+ db_other.close()
857
+ end
774
858
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transactd
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.0
5
5
  platform: x86-mswin32-100
6
6
  authors:
7
7
  - BizStation Corp.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-09 00:00:00.000000000 Z
11
+ date: 2016-04-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Transactd client for ruby gem
14
14
  email: transactd@bizstation.jp
@@ -22,8 +22,8 @@ files:
22
22
  - bin/2.2/transactd.so
23
23
  - bin/2.3/transactd.so
24
24
  - build/tdclrb/bldgem/extconf.rb
25
- - bin/common/tdclcpp_vc100_32mr_3_1.dll
26
- - bin/common/tdclc_32_3_1.dll
25
+ - bin/common/tdclcpp_vc100_32mr_3_2.dll
26
+ - bin/common/tdclc_32_3_2.dll
27
27
  - build/tdclrb/gem/detect.rb
28
28
  - build/tdclrb/gem/helper.rb
29
29
  - build/tdclrb/gem/INSTALLLOG.win32
Binary file
Binary file