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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
8780e1ab
Commit
8780e1ab
authored
Nov 20, 2013
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ConnectSE: Adding CATFUNC=Tables and CATFUC=Columns for the XLS ODBC data source.
parent
a392a911
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
storage/connect/mysql-test/connect/r/odbc_xls.result
storage/connect/mysql-test/connect/r/odbc_xls.result
+11
-0
storage/connect/mysql-test/connect/t/odbc_xls.test
storage/connect/mysql-test/connect/t/odbc_xls.test
+13
-0
No files found.
storage/connect/mysql-test/connect/r/odbc_xls.result
View file @
8780e1ab
...
...
@@ -13,3 +13,14 @@ Thomas Dominique NULL
Lemonnier Nathalie Directeur Marketing Client
Menseau Eric NULL
DROP TABLE contact;
CREATE TABLE t1 ENGINE=CONNECT CATFUNC=Tables TABLE_TYPE=ODBC CONNECTION='DSN=ConnectEngineXLS;DBQ=DATADIR/test/contacts.xls' CHARSET=utf8 DATA_CHARSET=latin1;;
SELECT * FROM t1 WHERE Table_name='CONTACT';
Table_Qualifier Table_Owner Table_Name Table_Type Remark
DATADIR/test/contacts CONTACT TABLE
DROP TABLE t1;
CREATE TABLE t1 ENGINE=CONNECT CATFUNC=Columns TABLE_TYPE=ODBC CONNECTION='DSN=ConnectEngineXLS;DBQ=DATADIR/test/contacts.xls' CHARSET=utf8 DATA_CHARSET=latin1;;
SELECT * FROM t1 WHERE Table_name='CONTACT' AND Column_name IN ('Nom','Fonction');
Table_Qualif Table_Owner Table_Name Column_Name Data_Type Type_Name Precision Length Scale Radix Nullable Remarks
DATADIR/test/contacts CONTACT Nom 12 VARCHAR 255 510 0 0 1
DATADIR/test/contacts CONTACT Fonction 12 VARCHAR 255 510 0 0 1
DROP TABLE t1;
storage/connect/mysql-test/connect/t/odbc_xls.test
View file @
8780e1ab
...
...
@@ -23,4 +23,17 @@ let $MYSQLD_DATADIR= `select @@datadir`;
SELECT
Nom
,
Fonction
FROM
contact
WHERE
Repertoire
=
'ascii'
;
DROP
TABLE
contact
;
--
replace_result
$MYSQLD_DATADIR
DATADIR
--
eval
CREATE
TABLE
t1
ENGINE
=
CONNECT
CATFUNC
=
Tables
TABLE_TYPE
=
ODBC
CONNECTION
=
'DSN=ConnectEngineXLS;DBQ=$MYSQLD_DATADIR/test/contacts.xls'
CHARSET
=
utf8
DATA_CHARSET
=
latin1
;
--
replace_result
$MYSQLD_DATADIR
DATADIR
SELECT
*
FROM
t1
WHERE
Table_name
=
'CONTACT'
;
DROP
TABLE
t1
;
--
replace_result
$MYSQLD_DATADIR
DATADIR
--
eval
CREATE
TABLE
t1
ENGINE
=
CONNECT
CATFUNC
=
Columns
TABLE_TYPE
=
ODBC
CONNECTION
=
'DSN=ConnectEngineXLS;DBQ=$MYSQLD_DATADIR/test/contacts.xls'
CHARSET
=
utf8
DATA_CHARSET
=
latin1
;
--
replace_result
$MYSQLD_DATADIR
DATADIR
SELECT
*
FROM
t1
WHERE
Table_name
=
'CONTACT'
AND
Column_name
IN
(
'Nom'
,
'Fonction'
);
DROP
TABLE
t1
;
--
remove_file
$MYSQLD_DATADIR
/
test
/
contacts
.
xls
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