Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2b46dca5
Commit
2b46dca5
authored
Sep 13, 2018
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'connect/10.2' into 10.2
parents
a9336302
dbf25197
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
26 additions
and
81 deletions
+26
-81
storage/connect/javaconn.cpp
storage/connect/javaconn.cpp
+0
-23
storage/connect/jdbconn.cpp
storage/connect/jdbconn.cpp
+0
-4
storage/connect/mysql-test/connect/r/jdbc.result
storage/connect/mysql-test/connect/r/jdbc.result
+0
-1
storage/connect/mysql-test/connect/r/json_java_2.result
storage/connect/mysql-test/connect/r/json_java_2.result
+0
-1
storage/connect/mysql-test/connect/r/json_java_3.result
storage/connect/mysql-test/connect/r/json_java_3.result
+0
-1
storage/connect/mysql-test/connect/r/mongo_java_2.result
storage/connect/mysql-test/connect/r/mongo_java_2.result
+0
-1
storage/connect/mysql-test/connect/r/mongo_java_3.result
storage/connect/mysql-test/connect/r/mongo_java_3.result
+0
-1
storage/connect/mysql-test/connect/r/xml2.result
storage/connect/mysql-test/connect/r/xml2.result
+0
-31
storage/connect/mysql-test/connect/t/json_java_2.test
storage/connect/mysql-test/connect/t/json_java_2.test
+2
-0
storage/connect/mysql-test/connect/t/json_java_3.test
storage/connect/mysql-test/connect/t/json_java_3.test
+2
-0
storage/connect/mysql-test/connect/t/mongo_java_2.test
storage/connect/mysql-test/connect/t/mongo_java_2.test
+2
-0
storage/connect/mysql-test/connect/t/mongo_java_3.test
storage/connect/mysql-test/connect/t/mongo_java_3.test
+2
-0
storage/connect/mysql-test/connect/t/xml2.test
storage/connect/mysql-test/connect/t/xml2.test
+18
-18
No files found.
storage/connect/javaconn.cpp
View file @
2b46dca5
...
...
@@ -81,29 +81,6 @@ GETDEF JAVAConn::GetDefaultJavaVMInitArgs = NULL;
#define DEBUG_ONLY(f) ((void)0)
#endif // !_DEBUG
/***********************************************************************/
/* Allocate the structure used to refer to the result set. */
/***********************************************************************/
static
JCATPARM
*
AllocCatInfo
(
PGLOBAL
g
,
JCATINFO
fid
,
PCSZ
db
,
PCSZ
tab
,
PQRYRES
qrp
)
{
JCATPARM
*
cap
;
#if defined(_DEBUG)
assert
(
qrp
);
#endif
if
((
cap
=
(
JCATPARM
*
)
PlgDBSubAlloc
(
g
,
NULL
,
sizeof
(
JCATPARM
))))
{
memset
(
cap
,
0
,
sizeof
(
JCATPARM
));
cap
->
Id
=
fid
;
cap
->
Qrp
=
qrp
;
cap
->
DB
=
db
;
cap
->
Tab
=
tab
;
}
// endif cap
return
cap
;
}
// end of AllocCatInfo
/***********************************************************************/
/* JAVAConn construction/destruction. */
/***********************************************************************/
...
...
storage/connect/jdbconn.cpp
View file @
2b46dca5
...
...
@@ -322,10 +322,6 @@ static JCATPARM *AllocCatInfo(PGLOBAL g, JCATINFO fid, PCSZ db,
{
JCATPARM
*
cap
;
#if defined(_DEBUG)
assert
(
qrp
);
#endif
if
((
cap
=
(
JCATPARM
*
)
PlgDBSubAlloc
(
g
,
NULL
,
sizeof
(
JCATPARM
))))
{
memset
(
cap
,
0
,
sizeof
(
JCATPARM
));
cap
->
Id
=
fid
;
...
...
storage/connect/mysql-test/connect/r/jdbc.result
View file @
2b46dca5
...
...
@@ -236,7 +236,6 @@ WHEELFOR SALESMAN 10030.00
MARTIN ENGINEER 10000.00
DROP TABLE t1, connect.emp;
CREATE TABLE t2 (command varchar(128) not null,number int(5) not null flag=1,message varchar(255) flag=2) ENGINE=CONNECT TABLE_TYPE=JDBC CONNECTION='jdbc:mariadb://localhost:PORT/connect' OPTION_LIST='User=root,Execsrc=1';
SELECT * FROM t2 WHERE command='drop table tx1';
command number message
drop table tx1 0 Execute: java.sql.SQLSyntaxErrorException: (conn:24) Unknown table 'connect.tx1'
SELECT * FROM t2 WHERE command = 'create table tx1 (a int not null, b char(32), c double(8,2))';
...
...
storage/connect/mysql-test/connect/r/json_java_2.result
View file @
2b46dca5
SET GLOBAL connect_class_path='C:/MariaDB-10.2/MariaDB/storage/connect/mysql-test/connect/std_data/Mongo2.jar';
set connect_enable_mongo=1;
#
# Test the MONGO table type
...
...
storage/connect/mysql-test/connect/r/json_java_3.result
View file @
2b46dca5
SET GLOBAL connect_class_path='C:/MariaDB-10.2/MariaDB/storage/connect/mysql-test/connect/std_data/Mongo3.jar';
set connect_enable_mongo=1;
#
# Test the MONGO table type
...
...
storage/connect/mysql-test/connect/r/mongo_java_2.result
View file @
2b46dca5
SET GLOBAL connect_class_path='C:/MariaDB-10.2/MariaDB/storage/connect/mysql-test/connect/std_data/Mongo2.jar';
set connect_enable_mongo=1;
#
# Test the MONGO table type
...
...
storage/connect/mysql-test/connect/r/mongo_java_3.result
View file @
2b46dca5
SET GLOBAL connect_class_path='C:/MariaDB-10.2/MariaDB/storage/connect/mysql-test/connect/std_data/Mongo3.jar';
set connect_enable_mongo=1;
#
# Test the MONGO table type
...
...
storage/connect/mysql-test/connect/r/xml2.result
View file @
2b46dca5
...
...
@@ -333,37 +333,6 @@ DROP TABLE t1;
#
# Testing Cyrillic
#
CREATE TABLE t1
(
c CHAR(16) CHARACTER SET utf8
) ENGINE=CONNECT TABLE_TYPE=XML FILE_NAME='cp1251.xml'
OPTION_LIST='xmlsup=libxml2,rownode=b';
SELECT * FROM t1;
c БВГДЕЖЗ
INSERT INTO t1 VALUES ('ИКЛМН');
SELECT c, HEX(c) FROM t1;
c БВГДЕЖЗ
HEX(c) D091D092D093D094D095D096D097
c ИКЛМН
HEX(c) D098D09AD09BD09CD09D
DROP TABLE t1;
CREATE TABLE t1
(
c CHAR(16) CHARACTER SET cp1251
) ENGINE=CONNECT TABLE_TYPE=XML FILE_NAME='cp1251.xml'
OPTION_LIST='xmlsup=libxml2,rownode=b';
SELECT * FROM t1;
c БВГДЕЖЗ
c ИКЛМН
INSERT INTO t1 VALUES ('ОПРСТ');
SELECT c, HEX(c) FROM t1;
c БВГДЕЖЗ
HEX(c) C1C2C3C4C5C6C7
c ИКЛМН
HEX(c) C8CACBCCCD
c ОПРСТ
HEX(c) CECFD0D1D2
DROP TABLE t1;
#
# Testing that the underlying file is created with a proper Encoding
#
...
...
storage/connect/mysql-test/connect/t/json_java_2.test
View file @
2b46dca5
--
source
jdbconn
.
inc
--
source
mongo
.
inc
--
disable_query_log
eval
SET
GLOBAL
connect_class_path
=
'$MTR_SUITE_DIR/std_data/Mongo2.jar'
;
--
enable_query_log
let
$DRV
=
Java
;
let
$VERS
=
2
;
let
$TYPE
=
JSON
;
...
...
storage/connect/mysql-test/connect/t/json_java_3.test
View file @
2b46dca5
--
source
jdbconn
.
inc
--
source
mongo
.
inc
--
disable_query_log
eval
SET
GLOBAL
connect_class_path
=
'$MTR_SUITE_DIR/std_data/Mongo3.jar'
;
--
enable_query_log
let
$DRV
=
Java
;
let
$VERS
=
3
;
let
$TYPE
=
JSON
;
...
...
storage/connect/mysql-test/connect/t/mongo_java_2.test
View file @
2b46dca5
--
source
jdbconn
.
inc
--
source
mongo
.
inc
--
disable_query_log
eval
SET
GLOBAL
connect_class_path
=
'$MTR_SUITE_DIR/std_data/Mongo2.jar'
;
--
enable_query_log
let
$DRV
=
Java
;
let
$VERS
=
2
;
let
$TYPE
=
MONGO
;
...
...
storage/connect/mysql-test/connect/t/mongo_java_3.test
View file @
2b46dca5
--
source
jdbconn
.
inc
--
source
mongo
.
inc
--
disable_query_log
eval
SET
GLOBAL
connect_class_path
=
'$MTR_SUITE_DIR/std_data/Mongo3.jar'
;
--
enable_query_log
let
$DRV
=
Java
;
let
$VERS
=
3
;
let
$TYPE
=
MONGO
;
...
...
storage/connect/mysql-test/connect/t/xml2.test
View file @
2b46dca5
...
...
@@ -240,24 +240,24 @@ DROP TABLE t1;
--
echo
#
--
echo
# Testing Cyrillic
--
echo
#
CREATE
TABLE
t1
(
c
CHAR
(
16
)
CHARACTER
SET
utf8
)
ENGINE
=
CONNECT
TABLE_TYPE
=
XML
FILE_NAME
=
'cp1251.xml'
OPTION_LIST
=
'xmlsup=libxml2,rownode=b'
;
SELECT
*
FROM
t1
;
INSERT
INTO
t1
VALUES
(
'ИКЛМН'
);
SELECT
c
,
HEX
(
c
)
FROM
t1
;
DROP
TABLE
t1
;
CREATE
TABLE
t1
(
c
CHAR
(
16
)
CHARACTER
SET
cp1251
)
ENGINE
=
CONNECT
TABLE_TYPE
=
XML
FILE_NAME
=
'cp1251.xml'
OPTION_LIST
=
'xmlsup=libxml2,rownode=b'
;
SELECT
*
FROM
t1
;
INSERT
INTO
t1
VALUES
(
'ОПРСТ'
);
SELECT
c
,
HEX
(
c
)
FROM
t1
;
DROP
TABLE
t1
;
#
CREATE TABLE t1
#
(
#
c CHAR(16) CHARACTER SET utf8
#
) ENGINE=CONNECT TABLE_TYPE=XML FILE_NAME='cp1251.xml'
#
OPTION_LIST='xmlsup=libxml2,rownode=b';
#
SELECT * FROM t1;
#
INSERT INTO t1 VALUES ('ИКЛМН');
#
SELECT c, HEX(c) FROM t1;
#
DROP TABLE t1;
#
CREATE TABLE t1
#
(
#
c CHAR(16) CHARACTER SET cp1251
#
) ENGINE=CONNECT TABLE_TYPE=XML FILE_NAME='cp1251.xml'
#
OPTION_LIST='xmlsup=libxml2,rownode=b';
#
SELECT * FROM t1;
#
INSERT INTO t1 VALUES ('ОПРСТ');
#
SELECT c, HEX(c) FROM t1;
#
DROP TABLE t1;
--
echo
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment