transactd 3.7.1 → 3.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/common/tdclc_32_3_7.dll +0 -0
- data/bin/common/tdclc_64_3_7.dll +0 -0
- data/build/common/options.cmake +3 -1
- data/build/common/transactd_cl_output.cmake +16 -0
- data/build/common/transactd_required.cmake +12 -1
- data/build/swig/ruby/tdclrb_wrap.cpp +10 -33
- data/build/tdclc/tdclc.rc +4 -4
- data/build/tdclcpp/CMakeLists.txt +8 -0
- data/build/tdclcpp/tdclcpp.rc +4 -4
- data/build/tdclrb/CMakeLists.txt +4 -0
- data/build/tdclrb/tdclrb.rc +4 -4
- data/source/bzs/db/protocol/tdap/client/field.cpp +1 -1
- data/source/bzs/db/protocol/tdap/client/nsDatabase.cpp +19 -0
- data/source/bzs/db/protocol/tdap/client/nsTable.cpp +26 -9
- data/source/bzs/db/protocol/tdap/tdapcapi.h +3 -3
- data/source/bzs/db/transactd/connManager.cpp +2 -2
- data/source/bzs/env/compiler.h +1 -1
- data/source/bzs/env/crosscompile.cpp +15 -0
- data/source/bzs/env/crosscompile.h +4 -0
- data/source/bzs/test/tdclphp/transactd_v3_Test.php +3 -3
- data/source/bzs/test/tdclrb/transactd_v3_spec.rb +1 -1
- data/source/bzs/test/trdclengn/test_trdclengn.cpp +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66e98201915050eedaa0ae874f15180ea86cecbc
|
4
|
+
data.tar.gz: e916f4dfa349ca4b38cac35b4f753130a28dcb52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 295ccc792e04520ee372a6cc0f363eb5cd15179d30272d32de727856468f66f713b178847aab0c341d463861f552a29cfc51a64bba7f9430de1449679c43b4a1
|
7
|
+
data.tar.gz: e933424f24905e6bba017269cd3680656b2b5e0167b7d3f1a994f9089f3948e46441b42d1f75cac8fef90ff38d2784d36f2e0a7483de1485756ebc95652e3fb4
|
data/bin/common/tdclc_32_3_7.dll
CHANGED
Binary file
|
data/bin/common/tdclc_64_3_7.dll
CHANGED
Binary file
|
data/build/common/options.cmake
CHANGED
@@ -67,7 +67,9 @@ endif()
|
|
67
67
|
if(NOT COMMAND bz_force_gcc)
|
68
68
|
macro(bz_force_gcc)
|
69
69
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
70
|
-
|
70
|
+
if(NOT "${CMAKE_CXX_COMPILER}" MATCHES "[Cc][Ll][Aa][Nn][Gg]")
|
71
|
+
set(CMAKE_CXX_COMPILER "$ENV{CC}")
|
72
|
+
endif()
|
71
73
|
endif()
|
72
74
|
endmacro()
|
73
75
|
endif()
|
@@ -85,6 +85,22 @@ endmacro()
|
|
85
85
|
endif()
|
86
86
|
|
87
87
|
|
88
|
+
# ==========================================================
|
89
|
+
# transactd_set_rpath
|
90
|
+
# ==========================================================
|
91
|
+
if(NOT COMMAND transactd_set_rpath)
|
92
|
+
macro(transactd_set_rpath prefix)
|
93
|
+
SET(CMAKE_SKIP_BUILD_RPATH TRUE)
|
94
|
+
SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
95
|
+
if("${prefix}" STREQUAL "")
|
96
|
+
SET(CMAKE_INSTALL_RPATH "/usr/lib")
|
97
|
+
else()
|
98
|
+
SET(CMAKE_INSTALL_RPATH "${prefix}")
|
99
|
+
endif()
|
100
|
+
endmacro()
|
101
|
+
endif()
|
102
|
+
|
103
|
+
|
88
104
|
# ==========================================================
|
89
105
|
# transactd_set_exe_output
|
90
106
|
# ==========================================================
|
@@ -22,7 +22,18 @@
|
|
22
22
|
if(WIN32)
|
23
23
|
set(tmp_verstr "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}")
|
24
24
|
if ("2.8.3" GREATER "${tmp_verstr}")
|
25
|
-
message(
|
25
|
+
message(FATAL_ERROR "CMake 2.8.3 or newer is required. You are running version ${tmp_verstr}")
|
26
|
+
endif()
|
27
|
+
include(CMakeParseArguments)
|
28
|
+
endif()
|
29
|
+
|
30
|
+
# ==========================================================
|
31
|
+
# require 3.0.0 on Mac OS X
|
32
|
+
# ==========================================================
|
33
|
+
if(APPLE)
|
34
|
+
set(tmp_verstr "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}")
|
35
|
+
if ("3.0.0" GREATER "${tmp_verstr}")
|
36
|
+
message(FATAL_ERROR "CMake 3.0.0 or newer is required. You are running version ${tmp_verstr}")
|
26
37
|
endif()
|
27
38
|
include(CMakeParseArguments)
|
28
39
|
endif()
|
@@ -14722,22 +14722,14 @@ SWIGINTERN VALUE
|
|
14722
14722
|
_wrap_nsdatabase_getCreateViewSql(int argc, VALUE *argv, VALUE self) {
|
14723
14723
|
tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ;
|
14724
14724
|
_TCHAR *arg2 = (_TCHAR *) 0 ;
|
14725
|
-
char *arg3 = (char *) 0 ;
|
14726
|
-
uint_td *arg4 = (uint_td *) 0 ;
|
14727
14725
|
int res2 ;
|
14728
14726
|
char *buf2 = 0 ;
|
14729
14727
|
int alloc2 = 0 ;
|
14730
14728
|
char *result = 0 ;
|
14731
14729
|
VALUE vresult = Qnil;
|
14732
14730
|
if (!check_param_count(argc, 1, 1)) return Qnil;
|
14733
|
-
|
14734
|
-
|
14735
|
-
uint_td n = 65000;
|
14736
|
-
uint_td* n_p = &n;
|
14737
|
-
char* p = new char[n];
|
14738
|
-
arg3 = p;
|
14739
|
-
arg4 = n_p;
|
14740
|
-
}
|
14731
|
+
uint_td n = 65000;
|
14732
|
+
char* p = new char[n];
|
14741
14733
|
arg1 = selfPtr(self, arg1);
|
14742
14734
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
14743
14735
|
if (!SWIG_IsOK(res2)) {
|
@@ -14746,7 +14738,7 @@ _wrap_nsdatabase_getCreateViewSql(int argc, VALUE *argv, VALUE self) {
|
|
14746
14738
|
arg2 = reinterpret_cast< _TCHAR * >(buf2);
|
14747
14739
|
{
|
14748
14740
|
try {
|
14749
|
-
result = (char *)(arg1)->getCreateViewSql((_TCHAR const *)arg2,
|
14741
|
+
result = (char *)(arg1)->getCreateViewSql((_TCHAR const *)arg2,p,&n);
|
14750
14742
|
}
|
14751
14743
|
CATCH_BZS_AND_STD()
|
14752
14744
|
}
|
@@ -14754,15 +14746,11 @@ _wrap_nsdatabase_getCreateViewSql(int argc, VALUE *argv, VALUE self) {
|
|
14754
14746
|
vresult = rb_enc_str_new(result, strlen(result), utf8_enc);
|
14755
14747
|
}
|
14756
14748
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
14757
|
-
|
14758
|
-
delete [] arg3;
|
14759
|
-
}
|
14749
|
+
delete [] p;
|
14760
14750
|
return vresult;
|
14761
14751
|
fail:
|
14762
14752
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
14763
|
-
|
14764
|
-
delete [] arg3;
|
14765
|
-
}
|
14753
|
+
delete [] p;
|
14766
14754
|
return Qnil;
|
14767
14755
|
}
|
14768
14756
|
|
@@ -15556,21 +15544,14 @@ SWIGINTERN VALUE
|
|
15556
15544
|
_wrap_database_getSqlStringForCreateTable(int argc, VALUE *argv, VALUE self) {
|
15557
15545
|
tdap::client::database *arg1 = (tdap::client::database *) 0 ;
|
15558
15546
|
_TCHAR *arg2 = (_TCHAR *) 0 ;
|
15559
|
-
char *arg3 = (char *) 0 ;
|
15560
|
-
uint_td *arg4 = (uint_td *) 0 ;
|
15561
15547
|
int res2 ;
|
15562
15548
|
char *buf2 = 0 ;
|
15563
15549
|
int alloc2 = 0 ;
|
15564
15550
|
char *result = 0 ;
|
15565
15551
|
VALUE vresult = Qnil;
|
15566
15552
|
if (!check_param_count(argc, 1, 1)) return Qnil;
|
15567
|
-
|
15568
|
-
|
15569
|
-
uint_td* n_p = &n;
|
15570
|
-
char* p = new char[n];
|
15571
|
-
arg3 = p;
|
15572
|
-
arg4 = n_p;
|
15573
|
-
}
|
15553
|
+
uint_td n = 65000;
|
15554
|
+
char* p = new char[n];
|
15574
15555
|
arg1 = selfPtr(self, arg1);
|
15575
15556
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
15576
15557
|
if (!SWIG_IsOK(res2)) {
|
@@ -15579,7 +15560,7 @@ _wrap_database_getSqlStringForCreateTable(int argc, VALUE *argv, VALUE self) {
|
|
15579
15560
|
arg2 = reinterpret_cast< _TCHAR * >(buf2);
|
15580
15561
|
{
|
15581
15562
|
try {
|
15582
|
-
result = (char *)(arg1)->getSqlStringForCreateTable((_TCHAR const *)arg2,
|
15563
|
+
result = (char *)(arg1)->getSqlStringForCreateTable((_TCHAR const *)arg2, p, &n);
|
15583
15564
|
}
|
15584
15565
|
CATCH_BZS_AND_STD()
|
15585
15566
|
}
|
@@ -15587,15 +15568,11 @@ _wrap_database_getSqlStringForCreateTable(int argc, VALUE *argv, VALUE self) {
|
|
15587
15568
|
vresult = rb_enc_str_new(result, strlen(result), utf8_enc);
|
15588
15569
|
}
|
15589
15570
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
15590
|
-
|
15591
|
-
delete [] arg3;
|
15592
|
-
}
|
15571
|
+
delete [] p;
|
15593
15572
|
return vresult;
|
15594
15573
|
fail:
|
15595
15574
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
15596
|
-
|
15597
|
-
delete [] arg3;
|
15598
|
-
}
|
15575
|
+
delete [] p;
|
15599
15576
|
return Qnil;
|
15600
15577
|
}
|
15601
15578
|
|
data/build/tdclc/tdclc.rc
CHANGED
@@ -29,8 +29,8 @@
|
|
29
29
|
//
|
30
30
|
|
31
31
|
VS_VERSION_INFO VERSIONINFO
|
32
|
-
FILEVERSION 3,7,
|
33
|
-
PRODUCTVERSION 3,7,
|
32
|
+
FILEVERSION 3,7,2,251
|
33
|
+
PRODUCTVERSION 3,7,2,251
|
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.7.
|
50
|
+
VALUE "FileVersion", "3.7.2.251"
|
51
51
|
VALUE "LegalCopyright", "Copyright(C) 2016 BizStation Corp"
|
52
|
-
VALUE "ProductVersion", "3.7.
|
52
|
+
VALUE "ProductVersion", "3.7.2.251"
|
53
53
|
VALUE "ProductName", "Transactd Client (GPL V2)"
|
54
54
|
END
|
55
55
|
END
|
@@ -35,6 +35,10 @@ check_for_link_iconv()
|
|
35
35
|
set(this_target tdclcpp)
|
36
36
|
project(${this_target})
|
37
37
|
bz_force_gcc() # set compiler to gcc instead of g++
|
38
|
+
if(APPLE)
|
39
|
+
cmake_policy(SET CMP0042 NEW)
|
40
|
+
SET(MACOSX_RPATH TRUE)
|
41
|
+
endif()
|
38
42
|
|
39
43
|
|
40
44
|
# ==========================================================
|
@@ -192,6 +196,10 @@ else()
|
|
192
196
|
SOVERSION ${TD_RC_VER_MAJOR}.${TD_RC_VER_MINOR}
|
193
197
|
VERSION ${TD_RC_VER_MAJOR}.${TD_RC_VER_MINOR}.${TD_RC_VER_RELEASE})
|
194
198
|
endif()
|
199
|
+
if(APPLE)
|
200
|
+
SET(BUILD_WITH_INSTALL_RPATH)
|
201
|
+
SET(INSTALL_NAME_DIR @rpath/)
|
202
|
+
endif()
|
195
203
|
|
196
204
|
|
197
205
|
# ==========================================================
|
data/build/tdclcpp/tdclcpp.rc
CHANGED
@@ -29,8 +29,8 @@
|
|
29
29
|
//
|
30
30
|
|
31
31
|
VS_VERSION_INFO VERSIONINFO
|
32
|
-
FILEVERSION 3,7,
|
33
|
-
PRODUCTVERSION 3,7,
|
32
|
+
FILEVERSION 3,7,2,251
|
33
|
+
PRODUCTVERSION 3,7,2,251
|
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.7.
|
50
|
+
VALUE "FileVersion", "3.7.2.251"
|
51
51
|
VALUE "LegalCopyright", "Copyright(C) 2016 BizStation Corp"
|
52
|
-
VALUE "ProductVersion", "3.7.
|
52
|
+
VALUE "ProductVersion", "3.7.2.251"
|
53
53
|
VALUE "ProductName", "Transactd Client (GPL V2)"
|
54
54
|
END
|
55
55
|
END
|
data/build/tdclrb/CMakeLists.txt
CHANGED
@@ -33,6 +33,10 @@ include(../common/smart_install.cmake)
|
|
33
33
|
set(this_target tdclrb)
|
34
34
|
project(${this_target})
|
35
35
|
|
36
|
+
if(APPLE)
|
37
|
+
transactd_set_rpath("${TRANSACTD_CLIENTS_PREFIX}")
|
38
|
+
endif()
|
39
|
+
|
36
40
|
|
37
41
|
# ==========================================================
|
38
42
|
# options
|
data/build/tdclrb/tdclrb.rc
CHANGED
@@ -29,8 +29,8 @@
|
|
29
29
|
//
|
30
30
|
|
31
31
|
VS_VERSION_INFO VERSIONINFO
|
32
|
-
FILEVERSION 3,7,
|
33
|
-
PRODUCTVERSION 3,7,
|
32
|
+
FILEVERSION 3,7,2,251
|
33
|
+
PRODUCTVERSION 3,7,2,251
|
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.7.
|
50
|
+
VALUE "FileVersion", "3.7.2.251"
|
51
51
|
VALUE "LegalCopyright", "Copyright(C) 2016 BizStation Corp"
|
52
|
-
VALUE "ProductVersion", "3.7.
|
52
|
+
VALUE "ProductVersion", "3.7.2.251"
|
53
53
|
VALUE "ProductName", "Transactd Client (GPL V2)"
|
54
54
|
END
|
55
55
|
END
|
@@ -79,6 +79,7 @@ void setTrnsctdEntryPoint(BTRCALLID_PTR p)
|
|
79
79
|
MYTICALLID = p;
|
80
80
|
}
|
81
81
|
|
82
|
+
|
82
83
|
BTRCALLID_PTR getTrnsctdEntryPoint()
|
83
84
|
{
|
84
85
|
if (MYTICALLID)
|
@@ -87,6 +88,24 @@ BTRCALLID_PTR getTrnsctdEntryPoint()
|
|
87
88
|
if (hTrsdDLL == NULL)
|
88
89
|
hTrsdDLL = LoadLibraryA(LIB_PREFIX TDCLC_LIBNAME);
|
89
90
|
|
91
|
+
#ifdef __APPLE__
|
92
|
+
if (hTrsdDLL == NULL)
|
93
|
+
{
|
94
|
+
char buf[MAX_PATH];
|
95
|
+
GetModuleFileName(buf);
|
96
|
+
if (buf[0])
|
97
|
+
{
|
98
|
+
char* p = (char*)strrchr(buf, PSEPARATOR_C);
|
99
|
+
if (p)
|
100
|
+
{
|
101
|
+
*p = 0x00;
|
102
|
+
strcat(buf, PSEPARATOR_A LIB_PREFIX TDCLC_LIBNAME);
|
103
|
+
hTrsdDLL = LoadLibraryA(buf);
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
#endif
|
108
|
+
|
90
109
|
if (hTrsdDLL)
|
91
110
|
{
|
92
111
|
MYTICALLID =
|
@@ -1027,22 +1027,39 @@ void nstable::throwError(const _TCHAR* caption, nstable* tb)
|
|
1027
1027
|
_TCHAR* nstable::getDirURI(const _TCHAR* path, _TCHAR* buf)
|
1028
1028
|
{
|
1029
1029
|
bool uri = false;
|
1030
|
-
|
1030
|
+
bool btrv = false;
|
1031
|
+
if ((btrv = (bool)_tcsstr(path, _T("btrv://"))) || _tcsstr(path, _T("tdap://")))
|
1031
1032
|
uri = true;
|
1032
1033
|
#ifdef _WIN32
|
1033
1034
|
if (uri == false)
|
1034
1035
|
_tfullpath(buf, path, MAX_PATH);
|
1035
1036
|
else
|
1036
1037
|
#endif
|
1037
|
-
|
1038
|
-
_TUCHAR* p = _tcsmrchr((_TUCHAR*)buf, '=');
|
1039
|
-
if (p)
|
1040
|
-
*(p+1) = 0x00;
|
1041
|
-
else if ((p = _tcsmrchr((_TUCHAR*)buf, '?')))
|
1042
|
-
*p = 0x00;
|
1043
|
-
else if ((p = _tcsmrchr((_TUCHAR*)buf, PSEPARATOR_C)) && (uri == false))
|
1044
|
-
*p = 0x00;
|
1038
|
+
stripAuth(path, buf, MAX_PATH);
|
1045
1039
|
|
1040
|
+
_TUCHAR* p = _tcsmrchr((_TUCHAR*)buf, '=');
|
1041
|
+
if (btrv && p)
|
1042
|
+
{
|
1043
|
+
_TUCHAR* p2 = _tcsmrchr((_TUCHAR*)buf, PSEPARATOR_C);
|
1044
|
+
if (p2)
|
1045
|
+
{
|
1046
|
+
if (p > p2)
|
1047
|
+
p2 = NULL;
|
1048
|
+
else
|
1049
|
+
p = NULL;
|
1050
|
+
}
|
1051
|
+
if (p2) *p2 = 0x00;
|
1052
|
+
if (p) *(p + 1) = 0x00;
|
1053
|
+
}
|
1054
|
+
else
|
1055
|
+
{
|
1056
|
+
if (p)
|
1057
|
+
*(p+1) = 0x00;
|
1058
|
+
else if ((p = _tcsmrchr((_TUCHAR*)buf, '?')))
|
1059
|
+
*p = 0x00;
|
1060
|
+
else if ((p = _tcsmrchr((_TUCHAR*)buf, PSEPARATOR_C)) && (uri == false))
|
1061
|
+
*p = 0x00;
|
1062
|
+
}
|
1046
1063
|
if (uri && !_tcsstr(buf, _T("dbfile=")))
|
1047
1064
|
{
|
1048
1065
|
p = _tcsmrchr((_TUCHAR*)buf, '?');
|
@@ -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 "7"//##2 Build marker! Don't remove
|
673
|
-
#define C_INTERFACE_VER_RELEASE "
|
673
|
+
#define C_INTERFACE_VER_RELEASE "2"//##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 "7"//##5 Build marker! Don't remove
|
737
|
-
#define CPP_INTERFACE_VER_RELEASE "
|
737
|
+
#define CPP_INTERFACE_VER_RELEASE "2"//##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 7//##8 Build marker! Don't remove
|
774
|
-
#define TRANSACTD_VER_RELEASE
|
774
|
+
#define TRANSACTD_VER_RELEASE 2//##9 Build marker! Don't remove
|
775
775
|
|
776
776
|
#endif // BZS_DB_PROTOCOL_TDAP_TDAPCAPI_H
|
@@ -108,7 +108,7 @@ void connManager::getDatabaseList(igetDatabases* dbm, const module* mod) const
|
|
108
108
|
rec.inSnapshot = db->inSnapshot();
|
109
109
|
if (rec.inTransaction)
|
110
110
|
{
|
111
|
-
if (db->transactionIsolation()
|
111
|
+
if (db->transactionIsolation() >= ISO_REPEATABLE_READ)
|
112
112
|
rec.type = MULTILOCK_GAP;
|
113
113
|
else if (db->transactionIsolation() == ISO_READ_COMMITTED)
|
114
114
|
{
|
@@ -122,7 +122,7 @@ void connManager::getDatabaseList(igetDatabases* dbm, const module* mod) const
|
|
122
122
|
{
|
123
123
|
if (db->transactionIsolation() == 0)
|
124
124
|
rec.type = CONSISTENT_READ;
|
125
|
-
else if (db->transactionIsolation()
|
125
|
+
else if (db->transactionIsolation() >= ISO_REPEATABLE_READ)
|
126
126
|
rec.type = MULTILOCK_GAP_SHARE;
|
127
127
|
else if (db->transactionIsolation() == ISO_READ_COMMITTED)
|
128
128
|
rec.type = MULTILOCK_NOGAP_SHARE;
|
data/source/bzs/env/compiler.h
CHANGED
@@ -135,6 +135,21 @@ char16_t* wmemcpy(char16_t* dest, const char16_t* src, size_t count)
|
|
135
135
|
|
136
136
|
#endif // LINUX
|
137
137
|
|
138
|
+
#ifdef __APPLE__
|
139
|
+
#include <dlfcn.h>
|
140
|
+
/* buffer size need 266 bytes */
|
141
|
+
char* GetModuleFileName(char* retBuf)
|
142
|
+
{
|
143
|
+
retBuf[0] = 0x00;
|
144
|
+
Dl_info info;
|
145
|
+
if (dladdr(reinterpret_cast<void*>(GetModuleFileName), &info) == 0)
|
146
|
+
return retBuf;
|
147
|
+
strcpy(retBuf, info.dli_fname);
|
148
|
+
return retBuf;
|
149
|
+
}
|
150
|
+
#endif //__APPLE__
|
151
|
+
|
152
|
+
|
138
153
|
#if (defined(_WIN32) && !defined(__MINGW32__))
|
139
154
|
#include <windows.h>
|
140
155
|
#include "crosscompile.h"
|
@@ -886,8 +886,8 @@ class TransactdTest extends PHPUnit_Framework_TestCase
|
|
886
886
|
}
|
887
887
|
$this->assertNotEquals($bpos->pos, 0);
|
888
888
|
$this->assertNotEquals($bpos->filename, "");
|
889
|
-
echo PHP_EOL.'binlog pos = '.$bpos->filename.':'.$bpos->pos.PHP_EOL;
|
890
|
-
echo 'gtid (set)= '.$bpos->gtid.PHP_EOL;
|
889
|
+
//echo PHP_EOL.'binlog pos = '.$bpos->filename.':'.$bpos->pos.PHP_EOL;
|
890
|
+
//echo 'gtid (set)= '.$bpos->gtid.PHP_EOL;
|
891
891
|
|
892
892
|
//setGtid
|
893
893
|
$bpos->gtid = "ABCD";
|
@@ -989,7 +989,7 @@ class TransactdTest extends PHPUnit_Framework_TestCase
|
|
989
989
|
$this->assertEquals($mgr->stat(), 0);
|
990
990
|
$this->assertEquals($mgr->slaveStatusName(0), "Slave_IO_State");
|
991
991
|
for ($i = 0; $i < $recs->size(); $i++) {
|
992
|
-
echo(PHP_EOL . $mgr->slaveStatusName($i) . "\t:" . $recs[$i]->value);
|
992
|
+
//echo(PHP_EOL . $mgr->slaveStatusName($i) . "\t:" . $recs[$i]->value);
|
993
993
|
}
|
994
994
|
|
995
995
|
//extendedvars
|
@@ -1027,7 +1027,7 @@ describe Transactd, 'V3Features' do
|
|
1027
1027
|
expect(mgr.stat()).to eq 0
|
1028
1028
|
expect(mgr.slaveStatusName(0)).to eq "Slave_IO_State"
|
1029
1029
|
for i in 0...recs.size() do
|
1030
|
-
puts (mgr.slaveStatusName(i) + "\t:" + recs[i].value.to_s)
|
1030
|
+
# puts (mgr.slaveStatusName(i) + "\t:" + recs[i].value.to_s)
|
1031
1031
|
end
|
1032
1032
|
# extendedvars
|
1033
1033
|
recs = mgr.extendedvars()
|
@@ -5297,6 +5297,8 @@ void testGetDirUri()
|
|
5297
5297
|
nstable::getDirURI(_T("btrv://root@localhost/db"), retbuf);
|
5298
5298
|
BOOST_CHECK(_tcscmp(_T("btrv://localhost/db?dbfile="), retbuf) == 0);
|
5299
5299
|
#ifdef _WIN32
|
5300
|
+
nstable::getDirURI(_T("btrv://root@localhost/db?dbfile=..\\system\\test.bdf"), retbuf);
|
5301
|
+
BOOST_CHECK(_tcscmp(_T("btrv://localhost/db?dbfile=..\\system"), retbuf) == 0);
|
5300
5302
|
nstable::getDirURI(_T("c:\\temp\\abc\\abc.def"), retbuf);
|
5301
5303
|
BOOST_CHECK(_tcscmp(_T("c:\\temp\\abc"), retbuf) == 0);
|
5302
5304
|
#endif
|
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.7.
|
4
|
+
version: 3.7.2
|
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-12-
|
11
|
+
date: 2016-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Transactd client for ruby gem
|
14
14
|
email: transactd@bizstation.jp
|