transactd 3.8.2 → 3.8.3

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: b392f1c4ee8d715502df819a612f65693af6a778
4
- data.tar.gz: 73977ee53f8147cdb846460e0b365ce23cb488ce
3
+ metadata.gz: e4b6c5dc22a8971e20a36a67b3c853a11edcef5e
4
+ data.tar.gz: d31c166cf8a98fde371627bfd542fcbaf552b51e
5
5
  SHA512:
6
- metadata.gz: 2227c267f17c2285fcd3d6652ec46127d1cf8231d18ecd51722cb6207ce0349f706e7a2d9cab5976cd7aa55b90c9a41f935ab91e47cc62a2694eac859590fbb7
7
- data.tar.gz: 3bd07a60952ad9bd7d46f2fae96b697eafd4a9b33c5537e9061a1f2e4d1f2d474e172d8da0af43a9b17936371593f0d746e5fdb84194adeeb68b0fe41b48ae56
6
+ metadata.gz: 0712333e8b2abaea5a962c6ca9167bc2f823bb041b59b8c3be3dfabeb449da0eb6fc222f15f5b24da76672ff1651d842989dc02a5c7c34dc856ec8b095c57056
7
+ data.tar.gz: 4fd1aff262a10d652223e109b69600a2f69ded727081e24e2102c636e3726b74467277b0b800bfdf38973053f6df84cf462a5d5f2ebe7ccc568771776132aebc
Binary file
Binary file
@@ -29,8 +29,8 @@
29
29
  //
30
30
 
31
31
  VS_VERSION_INFO VERSIONINFO
32
- FILEVERSION 3,8,2,259
33
- PRODUCTVERSION 3,8,2,259
32
+ FILEVERSION 3,8,3,271
33
+ PRODUCTVERSION 3,8,3,271
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.8.2.259"
50
+ VALUE "FileVersion", "3.8.3.271"
51
51
  VALUE "LegalCopyright", "Copyright(C) 2016 BizStation Corp"
52
- VALUE "ProductVersion", "3.8.2.259"
52
+ VALUE "ProductVersion", "3.8.3.271"
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,8,2,259
33
- PRODUCTVERSION 3,8,2,259
32
+ FILEVERSION 3,8,3,271
33
+ PRODUCTVERSION 3,8,3,271
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.8.2.259"
50
+ VALUE "FileVersion", "3.8.3.271"
51
51
  VALUE "LegalCopyright", "Copyright(C) 2016 BizStation Corp"
52
- VALUE "ProductVersion", "3.8.2.259"
52
+ VALUE "ProductVersion", "3.8.3.271"
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,8,2,259
33
- PRODUCTVERSION 3,8,2,259
32
+ FILEVERSION 3,8,3,271
33
+ PRODUCTVERSION 3,8,3,271
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.8.2.259"
50
+ VALUE "FileVersion", "3.8.3.271"
51
51
  VALUE "LegalCopyright", "Copyright(C) 2016 BizStation Corp"
52
- VALUE "ProductVersion", "3.8.2.259"
52
+ VALUE "ProductVersion", "3.8.3.271"
53
53
  VALUE "ProductName", "Transactd Client (GPL V2)"
54
54
  END
55
55
  END
@@ -2429,6 +2429,7 @@ __int64 table::insert(bool ncc)
2429
2429
 
2430
2430
  {
2431
2431
  autoincSetup setup(m_table);
2432
+ m_table->use_all_columns();
2432
2433
  setKeyNullFlags();
2433
2434
  if (!m_mysqlNull) setFieldNullFlags();
2434
2435
  setTimeStamp(true /* insert */);
@@ -2436,11 +2437,8 @@ __int64 table::insert(bool ncc)
2436
2437
  m_stat = m_table->file->ha_write_row(m_table->record[0]);
2437
2438
  autoincValue = m_table->file->insert_id_for_cur_row;
2438
2439
 
2439
- if (m_stat == 0 && m_table->file->insert_id_for_cur_row)
2440
- {
2441
- if (!m_bulkInserting)
2442
- m_table->file->ha_release_auto_increment();
2443
- }
2440
+ if (!m_bulkInserting)
2441
+ m_table->file->ha_release_auto_increment();
2444
2442
  }
2445
2443
 
2446
2444
  if (m_stat == 0)
@@ -744,7 +744,7 @@ public:
744
744
  typename Container::iterator it = begin(mdls), itb = begin(mdls),
745
745
  ite = end(mdls);
746
746
  it = itb = begin(mdls);
747
- T& mdlb = *(*it);
747
+ T* mdlb = (*it);
748
748
  if (!m_tb->isUseTransactd())
749
749
  nstable::throwError(_T("activeObject P.SQL can not use this"),
750
750
  (short_td)0);
@@ -753,15 +753,15 @@ public:
753
753
  // if mdl has same key value, to be once read access to server
754
754
  T& mdl = *(*it);
755
755
  if ((it == itb) || !sorted ||
756
- (m_map.compKeyValue(mdl, mdlb, m_tb->keyNum()) == true) ||
757
- (m_map.compKeyValue(mdlb, mdl, m_tb->keyNum()) == true))
756
+ (m_map.compKeyValue(mdl, *mdlb, m_tb->keyNum()) == true) ||
757
+ (m_map.compKeyValue(*mdlb, mdl, m_tb->keyNum()) == true))
758
758
  {
759
759
  m_map.setKeyValues(mdl, fds, m_tb->keyNum());
760
760
  keydef* kd = &m_tb->tableDef()->keyDefs[(int)m_tb->keyNum()];
761
761
  for (int i = 0; i < kd->segmentCount; ++i)
762
762
  q.addSeekKeyValue(fds[kd->segments[i].fieldNum].c_str());
763
763
  }
764
- mdlb = mdl;
764
+ mdlb = &mdl;
765
765
  ++it;
766
766
  }
767
767
  m_tb->setQuery(&q);
@@ -778,8 +778,8 @@ public:
778
778
  T& mdl = *(*it);
779
779
  if ((it != itb) &&
780
780
  (!sorted ||
781
- (m_map.compKeyValue(mdl, mdlb, m_tb->keyNum()) == true) ||
782
- (m_map.compKeyValue(mdlb, mdl, m_tb->keyNum()) == true)))
781
+ (m_map.compKeyValue(mdl, *mdlb, m_tb->keyNum()) == true) ||
782
+ (m_map.compKeyValue(*mdlb, mdl, m_tb->keyNum()) == true)))
783
783
  {
784
784
  m_tb->findNext();
785
785
  if ((m_tb->stat() != STATUS_SUCCESS) &&
@@ -796,7 +796,7 @@ public:
796
796
  }
797
797
  if (m_tb->stat() == 0)
798
798
  m_map.readMap(mdl, fds, m_option);
799
- mdlb = mdl;
799
+ mdlb = &mdl;
800
800
  ++it;
801
801
  }
802
802
  }
@@ -832,13 +832,13 @@ public:
832
832
  typename Container::iterator it = begin(mdls), itb = begin(mdls),
833
833
  ite = end(mdls);
834
834
  it = itb = begin(mdls);
835
- T& mdlb = *(*it);
835
+ T* mdlb = (*it);
836
836
  while (it != ite)
837
837
  {
838
838
  T& mdl = *(*it);
839
839
  if ((it == itb) || !sorted ||
840
- (m_map.compKeyValue(mdl, mdlb, m_tb->keyNum()) == true) ||
841
- (m_map.compKeyValue(mdlb, mdl, m_tb->keyNum()) == true))
840
+ (m_map.compKeyValue(mdl, *mdlb, m_tb->keyNum()) == true) ||
841
+ (m_map.compKeyValue(*mdlb, mdl, m_tb->keyNum()) == true))
842
842
  {
843
843
  m_map.setKeyValues(mdl, fds, m_tb->keyNum());
844
844
  readIndex(m_tb, eSeekEqual);
@@ -856,7 +856,7 @@ public:
856
856
  }
857
857
  if (m_tb->stat() == 0)
858
858
  m_map.readMap(mdl, fds, m_option);
859
- mdlb = mdl;
859
+ mdlb = &mdl;
860
860
  ++it;
861
861
  }
862
862
  }
@@ -670,7 +670,7 @@ struct handshale_t
670
670
  */
671
671
  #define C_INTERFACE_VER_MAJOR "3"//##1 Build marker! Don't remove
672
672
  #define C_INTERFACE_VER_MINOR "8"//##2 Build marker! Don't remove
673
- #define C_INTERFACE_VER_RELEASE "2"//##3 Build marker! Don't remove
673
+ #define C_INTERFACE_VER_RELEASE "3"//##3 Build marker! Don't remove
674
674
 
675
675
  /* dnamic load library name.
676
676
  The default extention of Mac is ".boudle", Therefore ".so" is popular. */
@@ -734,7 +734,7 @@ struct handshale_t
734
734
 
735
735
  #define CPP_INTERFACE_VER_MAJOR "3"//##4 Build marker! Don't remove
736
736
  #define CPP_INTERFACE_VER_MINOR "8"//##5 Build marker! Don't remove
737
- #define CPP_INTERFACE_VER_RELEASE "2"//##6 Build marker! Don't remove
737
+ #define CPP_INTERFACE_VER_RELEASE "3"//##6 Build marker! Don't remove
738
738
 
739
739
  /* use autolink tdclcpp */
740
740
  #if (__BCPLUSPLUS__ || _MSC_VER)
@@ -771,6 +771,6 @@ struct handshale_t
771
771
 
772
772
  #define TRANSACTD_VER_MAJOR 3//##7 Build marker! Don't remove
773
773
  #define TRANSACTD_VER_MINOR 8//##8 Build marker! Don't remove
774
- #define TRANSACTD_VER_RELEASE 2//##9 Build marker! Don't remove
774
+ #define TRANSACTD_VER_RELEASE 3//##9 Build marker! Don't remove
775
775
 
776
776
  #endif // BZS_DB_PROTOCOL_TDAP_TDAPCAPI_H
@@ -38,6 +38,9 @@
38
38
  #endif
39
39
  #endif
40
40
 
41
+ #ifdef _WIN32
42
+ #define NO_CONNECT_TIMER
43
+ #endif
41
44
 
42
45
  #include <stdio.h>
43
46
  #include <vector>
@@ -278,6 +281,7 @@ public:
278
281
  #define SYSTEM_CATEGORY system_category()
279
282
  #else
280
283
  #define SYSTEM_CATEGORY system_category
284
+ #define native_handle() native()
281
285
  #endif
282
286
 
283
287
  inline int getErrorCode()
@@ -303,7 +307,7 @@ public:
303
307
  int n = 0;
304
308
  do
305
309
  {
306
- int nn = recv(m_socket.native(), buf + n, (int)size - n, 0);
310
+ int nn = recv(m_socket.native_handle(), buf + n, (int)size - n, 0);
307
311
  if (n == SOCKET_ERROR)
308
312
  {
309
313
  e = error_code(getErrorCode(), SYSTEM_CATEGORY);
@@ -318,7 +322,7 @@ public:
318
322
  size_t readAll(char* buf, size_t size, system::error_code& e)
319
323
  {
320
324
  errno = 0;
321
- int n = recv(m_socket.native(), buf, (int)size, MSG_WAITALL);
325
+ int n = recv(m_socket.native_handle(), buf, (int)size, MSG_WAITALL);
322
326
  if (n == SOCKET_ERROR)
323
327
  {
324
328
  #ifdef _WIN32
@@ -335,7 +339,7 @@ public:
335
339
  boost::system::error_code& e)
336
340
  {
337
341
  errno = 0;
338
- int n = recv(m_socket.native(), buf, (int)size, 0);
342
+ int n = recv(m_socket.native_handle(), buf, (int)size, 0);
339
343
  if (n == SOCKET_ERROR)
340
344
  e = error_code(getErrorCode(), SYSTEM_CATEGORY);
341
345
  return (size_t)n;
@@ -344,7 +348,7 @@ public:
344
348
  void write(const char* buf, size_t size, int flag, boost::system::error_code& e)
345
349
  {
346
350
  errno = 0;
347
- int n = send(m_socket.native(), buf, (int)size, flag);
351
+ int n = send(m_socket.native_handle(), buf, (int)size, flag);
348
352
  if (n == SOCKET_ERROR)
349
353
  e = error_code(getErrorCode(), SYSTEM_CATEGORY);
350
354
  }
@@ -368,10 +372,10 @@ public:
368
372
  {
369
373
  #ifndef _WIN32
370
374
  int val = 0;
371
- ioctl(m_socket.native(), FIONBIO, &val);
375
+ ioctl(m_socket.native_handle(), FIONBIO, &val);
372
376
  #else
373
377
  u_long val = 0;
374
- ioctlsocket(m_socket.native(), FIONBIO, &val);
378
+ ioctlsocket(m_socket.native_handle(), FIONBIO, &val);
375
379
  #endif
376
380
  }
377
381
  };
@@ -539,9 +543,9 @@ class tcpConnection : public connectionImple<asio::ip::tcp::socket>
539
543
  struct timeval timeout;
540
544
  timeout.tv_usec = 0;
541
545
  timeout.tv_sec = time;
542
- int ret = setsockopt(m_socket.native(), SOL_SOCKET, SO_RCVTIMEO, (const char*)&timeout,
546
+ int ret = setsockopt(m_socket.native_handle(), SOL_SOCKET, SO_RCVTIMEO, (const char*)&timeout,
543
547
  sizeof(timeout));
544
- ret = setsockopt(m_socket.native(), SOL_SOCKET, SO_SNDTIMEO, (const char*)&timeout,
548
+ ret = setsockopt(m_socket.native_handle(), SOL_SOCKET, SO_SNDTIMEO, (const char*)&timeout,
545
549
  sizeof(timeout));
546
550
  }
547
551
  #ifdef USE_CONNECT_TIMER
@@ -752,8 +756,6 @@ class pipeConnection : public connectionImple<platform_stream>
752
756
 
753
757
  void write(unsigned int writeSize)
754
758
  {
755
- //m_datalen = 0;
756
- //m_rows = 0;
757
759
  m_e.clear();
758
760
  BOOL ret = SetEvent(m_sendEvent);
759
761
  if (ret == FALSE)
@@ -768,7 +770,7 @@ class pipeConnection : public connectionImple<platform_stream>
768
770
  {
769
771
  t += 1000;
770
772
  DWORD n = 0;
771
- BOOL ret = GetNamedPipeHandleState(m_socket.native(), NULL, &n,
773
+ BOOL ret = GetNamedPipeHandleState(m_socket.native_handle(), NULL, &n,
772
774
  NULL, NULL, NULL, 0);
773
775
  if(ret == FALSE || n < 2)
774
776
  m_e = boost::system::error_code(CLIENT_ERROR_CONNECTION_FAILURE, get_system_category());
@@ -791,7 +793,7 @@ class pipeConnection : public connectionImple<platform_stream>
791
793
  if (m_writebuf_p)
792
794
  memset(m_writebuf_p, 0, sizeof(unsigned int));
793
795
  DWORD n = 0;
794
- BOOL ret = GetNamedPipeHandleState(m_socket.native(), NULL, &n,
796
+ BOOL ret = GetNamedPipeHandleState(m_socket.native_handle(), NULL, &n,
795
797
  NULL, NULL, NULL, 0);
796
798
  if(m_sendEvent && ret && n > 1)
797
799
  {
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.8.2
4
+ version: 3.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BizStation Corp.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-15 00:00:00.000000000 Z
11
+ date: 2018-04-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Transactd client for ruby gem
14
14
  email: transactd@bizstation.jp