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
b35f9972
Commit
b35f9972
authored
Oct 21, 2015
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MDEV-8882
modified: storage/connect/tabodbc.cpp
parent
d51e466e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
storage/connect/tabodbc.cpp
storage/connect/tabodbc.cpp
+14
-3
No files found.
storage/connect/tabodbc.cpp
View file @
b35f9972
...
...
@@ -321,10 +321,21 @@ PSZ TDBODBC::GetFile(PGLOBAL g)
{
if
(
Connect
)
{
char
*
p1
,
*
p2
;
int
i
;
size_t
n
;
if
((
p1
=
strstr
(
Connect
,
"DBQ="
)))
{
p1
+=
4
;
// Beginning of file name
if
(
!
(
p1
=
strstr
(
Connect
,
"DBQ="
)))
{
char
*
p
,
*
lc
=
strlwr
(
PlugDup
(
g
,
Connect
));
if
((
p
=
strstr
(
lc
,
"database="
)))
p1
=
Connect
+
(
p
-
lc
);
i
=
9
;
}
else
i
=
4
;
if
(
p1
)
{
p1
+=
i
;
// Beginning of file name
p2
=
strchr
(
p1
,
';'
);
// End of file path/name
// Make the File path/name from the connect string
...
...
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