transactd 3.2.0 → 3.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46fc9de1020d6d9f990eac69007e77edca2df1c4
4
- data.tar.gz: 1fc5411c8a09fedc5e6112f93194ec306239b69a
3
+ metadata.gz: c8afedc283ad3c5f90748c790cd742ab52fcf8cd
4
+ data.tar.gz: bf3cf1c4865812cb1aa88603bdef95f31ae1fbb6
5
5
  SHA512:
6
- metadata.gz: 672aef0e761f78f4798070a06333b1c006b85dc3fdbf52aa53f2b90e8304af2c344af33cf315f7b9c28b3d29604ee81238843ef409d8d4ed627afe3dd913c54f
7
- data.tar.gz: d653ef73ceb34fac5eebfc31acf5df50854e40890f027beb49a8145c5b176a00e5d8526ec48c07e6b091a586c769d412c98d5019dc76f3be99f82056673ef873
6
+ metadata.gz: faf1c446f6febad403c6602989c6a07f43232acf76e17855d4591fdddbe32e7604adfdc57df1a47876ea8228f3e3e6c9c188b8a8e677e55799a59f40e5ddbd6b
7
+ data.tar.gz: abc729f2184f26d922ce70a5ba7f72d882c0f507b50c1d7a47aa32564c18e630975098eae6df08aa701eb6820069cb382df4018307a865b0ebdc41a0c104b816
Binary file
Binary file
data/build/tdclc/tdclc.rc CHANGED
@@ -29,8 +29,8 @@
29
29
  //
30
30
 
31
31
  VS_VERSION_INFO VERSIONINFO
32
- FILEVERSION 3,2,0,193
33
- PRODUCTVERSION 3,2,0,193
32
+ FILEVERSION 3,2,0,195
33
+ PRODUCTVERSION 3,2,0,195
34
34
  FILEFLAGSMASK 0x3fL
35
35
  #ifdef _DEBUG
36
36
  FILEFLAGS 0x1L
@@ -47,9 +47,9 @@ BEGIN
47
47
  BEGIN
48
48
  VALUE "CompanyName", "BizStation Corp."
49
49
  VALUE "FileDescription", "Transactd C client"
50
- VALUE "FileVersion", "3.2.0.193"
50
+ VALUE "FileVersion", "3.2.0.195"
51
51
  VALUE "LegalCopyright", "Copyright(C) 2016 BizStation Corp"
52
- VALUE "ProductVersion", "3.2.0.193"
52
+ VALUE "ProductVersion", "3.2.0.195"
53
53
  VALUE "ProductName", "Transactd Client (GPL V2)"
54
54
  END
55
55
  END
@@ -29,8 +29,8 @@
29
29
  //
30
30
 
31
31
  VS_VERSION_INFO VERSIONINFO
32
- FILEVERSION 3,2,0,193
33
- PRODUCTVERSION 3,2,0,193
32
+ FILEVERSION 3,2,1,195
33
+ PRODUCTVERSION 3,2,1,195
34
34
  FILEFLAGSMASK 0x3fL
35
35
  #ifdef _DEBUG
36
36
  FILEFLAGS 0x1L
@@ -47,9 +47,9 @@ BEGIN
47
47
  BEGIN
48
48
  VALUE "CompanyName", "BizStation Corp."
49
49
  VALUE "FileDescription", "Transactd C++ client"
50
- VALUE "FileVersion", "3.2.0.193"
50
+ VALUE "FileVersion", "3.2.1.195"
51
51
  VALUE "LegalCopyright", "Copyright(C) 2016 BizStation Corp"
52
- VALUE "ProductVersion", "3.2.0.193"
52
+ VALUE "ProductVersion", "3.2.1.195"
53
53
  VALUE "ProductName", "Transactd Client (GPL V2)"
54
54
  END
55
55
  END
@@ -29,8 +29,8 @@
29
29
  //
30
30
 
31
31
  VS_VERSION_INFO VERSIONINFO
32
- FILEVERSION 3,2,0,193
33
- PRODUCTVERSION 3,2,0,193
32
+ FILEVERSION 3,2,1,195
33
+ PRODUCTVERSION 3,2,1,195
34
34
  FILEFLAGSMASK 0x3fL
35
35
  #ifdef _DEBUG
36
36
  FILEFLAGS 0x1L
@@ -47,9 +47,9 @@ BEGIN
47
47
  BEGIN
48
48
  VALUE "CompanyName", "BizStation Corp."
49
49
  VALUE "FileDescription", "Transactd Ruby client"
50
- VALUE "FileVersion", "3.2.0.193"
50
+ VALUE "FileVersion", "3.2.1.195"
51
51
  VALUE "LegalCopyright", "Copyright(C) 2016 BizStation Corp"
52
- VALUE "ProductVersion", "3.2.0.193"
52
+ VALUE "ProductVersion", "3.2.1.195"
53
53
  VALUE "ProductName", "Transactd Client (GPL V2)"
54
54
  END
55
55
  END
@@ -323,10 +323,8 @@ const connMgr::records& connMgr::inUseTables(__int64 connid, int dbid)
323
323
 
324
324
  void connMgr::postDisconnectOne(__int64 connid)
325
325
  {
326
- allocBuffer();
327
326
  m_keynum = TD_STSTCS_DISCONNECT_ONE;
328
- record& rec = m_records[0];
329
- rec.conId = connid;
327
+ m_params[0] = connid;
330
328
  tdap(TD_STASTISTICS);
331
329
  }
332
330
 
@@ -987,21 +987,14 @@ _TCHAR* nstable::getDirURI(const _TCHAR* path, _TCHAR* buf)
987
987
  else
988
988
  #endif
989
989
  stripAuth(path, buf, MAX_PATH);
990
- _TUCHAR* p = _tcsmrchr((_TUCHAR*)buf, PSEPARATOR_C);
991
- _TUCHAR* p1 = _tcsmrchr((_TUCHAR*)buf, '?');
992
- if (p1 && (p1 > p)) p = p1;
993
- _TUCHAR* p2 = _tcsmrchr((_TUCHAR*)buf, '=');
994
- if (p && p2)
995
- {
996
- if (p2 > p)
997
- p = NULL;
998
- else
999
- p2 = NULL;
1000
- }
1001
- if (p && (uri == false))
990
+ _TUCHAR* p = _tcsmrchr((_TUCHAR*)buf, '=');
991
+ if (p)
992
+ *(p+1) = 0x00;
993
+ else if (p = _tcsmrchr((_TUCHAR*)buf, '?'))
994
+ *p = 0x00;
995
+ else if ((p = _tcsmrchr((_TUCHAR*)buf, PSEPARATOR_C)) && (uri == false))
1002
996
  *p = 0x00;
1003
- if (p2)
1004
- *(p2 + 1) = 0x00;
997
+
1005
998
  if (uri && !_tcsstr(buf, _T("dbfile=")))
1006
999
  {
1007
1000
  p = _tcsmrchr((_TUCHAR*)buf, '?');
@@ -678,7 +678,7 @@ struct handshale_t
678
678
 
679
679
  #define CPP_INTERFACE_VER_MAJOR "3"//##4 Build marker! Don't remove
680
680
  #define CPP_INTERFACE_VER_MINOR "2"//##5 Build marker! Don't remove
681
- #define CPP_INTERFACE_VER_RELEASE "0"//##6 Build marker! Don't remove
681
+ #define CPP_INTERFACE_VER_RELEASE "1"//##6 Build marker! Don't remove
682
682
 
683
683
  /* use autolink tdclcpp */
684
684
  #if (__BCPLUSPLUS__ || _MSC_VER)
@@ -5223,6 +5223,27 @@ void testBinaryField()
5223
5223
  }
5224
5224
  }
5225
5225
 
5226
+ void testGetDirUri()
5227
+ {
5228
+ _TCHAR retbuf[MAX_PATH];
5229
+ nstable::getDirURI(_T("tdap://localhost/db?dbfile=test.bdf"), retbuf);
5230
+ BOOST_CHECK(_tcscmp(_T("tdap://localhost/db?dbfile="), retbuf) == 0);
5231
+ nstable::getDirURI(_T("tdap://root@localhost/db?dbfile=test.bdf&pwd=1234"), retbuf);
5232
+ BOOST_CHECK(_tcscmp(_T("tdap://localhost/db?dbfile="), retbuf) == 0);
5233
+ nstable::getDirURI(_T("tdap://localhost/db"), retbuf);
5234
+ BOOST_CHECK(_tcscmp(_T("tdap://localhost/db?dbfile="), retbuf) == 0);
5235
+ nstable::getDirURI(_T("tdap://root@localhost/db"), retbuf);
5236
+ BOOST_CHECK(_tcscmp(_T("tdap://localhost/db?dbfile="), retbuf) == 0);
5237
+ nstable::getDirURI(_T("tdap://root@localhost/"), retbuf);
5238
+ BOOST_CHECK(_tcscmp(_T("tdap://localhost/?dbfile="), retbuf) == 0);
5239
+ nstable::getDirURI(_T("btrv://root@localhost/db"), retbuf);
5240
+ BOOST_CHECK(_tcscmp(_T("btrv://localhost/db?dbfile="), retbuf) == 0);
5241
+ #ifdef _WIN32
5242
+ nstable::getDirURI(_T("c:\\temp\\abc\\abc.def"), retbuf);
5243
+ BOOST_CHECK(_tcscmp(_T("c:\\temp\\abc"), retbuf) == 0);
5244
+ #endif
5245
+ }
5246
+
5226
5247
 
5227
5248
  // ------------------------------------------------------------------------
5228
5249
  BOOST_AUTO_TEST_SUITE(btrv_nativ)
@@ -5629,6 +5650,14 @@ BOOST_AUTO_TEST_CASE(binary)
5629
5650
  {
5630
5651
  testBinaryField();
5631
5652
  }
5653
+ BOOST_AUTO_TEST_SUITE_END()
5654
+
5655
+ BOOST_AUTO_TEST_SUITE(static_function)
5656
+
5657
+ BOOST_AUTO_TEST_CASE(getDirUri)
5658
+ {
5659
+ testGetDirUri();
5660
+ }
5632
5661
 
5633
5662
  BOOST_AUTO_TEST_CASE(fuga)
5634
5663
  {
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.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BizStation Corp.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-08 00:00:00.000000000 Z
11
+ date: 2016-04-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Transactd client for ruby gem
14
14
  email: transactd@bizstation.jp