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
1816eca5
Commit
1816eca5
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
2445b1b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
storage/connect/tabodbc.cpp
storage/connect/tabodbc.cpp
+13
-2
No files found.
storage/connect/tabodbc.cpp
View file @
1816eca5
...
@@ -323,10 +323,21 @@ PSZ TDBODBC::GetFile(PGLOBAL g)
...
@@ -323,10 +323,21 @@ PSZ TDBODBC::GetFile(PGLOBAL g)
{
{
if
(
Connect
)
{
if
(
Connect
)
{
char
*
p1
,
*
p2
;
char
*
p1
,
*
p2
;
int
i
;
size_t
n
;
size_t
n
;
if
((
p1
=
strstr
(
Connect
,
"DBQ="
)))
{
if
(
!
(
p1
=
strstr
(
Connect
,
"DBQ="
)))
{
p1
+=
4
;
// Beginning of file name
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
p2
=
strchr
(
p1
,
';'
);
// End of file path/name
// Make the File path/name from the connect string
// 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