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
0a01953c
Commit
0a01953c
authored
Jun 03, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler warnings
parent
1fe92fb8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
storage/connect/ha_connect.cc
storage/connect/ha_connect.cc
+6
-7
storage/connect/tabutil.cpp
storage/connect/tabutil.cpp
+2
-2
No files found.
storage/connect/ha_connect.cc
View file @
0a01953c
...
...
@@ -693,8 +693,8 @@ char *ha_connect::GetStringOption(char *opname, char *sdef)
opval
=
(
char
*
)
GetDBName
(
NULL
);
// Current database
else
if
(
!
stricmp
(
opname
,
"Type"
))
// Default type
opval
=
(
!
options
)
?
NULL
:
(
options
->
srcdef
)
?
"MYSQL"
:
(
options
->
tabname
)
?
"PROXY"
:
"DOS"
;
(
options
->
srcdef
)
?
(
char
*
)
"MYSQL"
:
(
options
->
tabname
)
?
(
char
*
)
"PROXY"
:
(
char
*
)
"DOS"
;
else
if
(
!
stricmp
(
opname
,
"User"
))
// Connected user
opval
=
(
char
*
)
"root"
;
else
if
(
!
stricmp
(
opname
,
"Host"
))
// Connected user host
...
...
@@ -792,7 +792,7 @@ int ha_connect::GetIntegerOption(char *opname)
else
if
(
!
stricmp
(
opname
,
"Compressed"
))
opval
=
(
options
->
compressed
);
if
(
opval
==
NO_IVAL
&&
options
&&
options
->
oplist
)
if
(
opval
==
(
ulonglong
)
NO_IVAL
&&
options
&&
options
->
oplist
)
if
((
pv
=
GetListOption
(
xp
->
g
,
opname
,
options
->
oplist
)))
opval
=
(
unsigned
)
atoll
(
pv
);
...
...
@@ -2799,7 +2799,7 @@ bool ha_connect::IsSameIndex(PIXDEF xp1, PIXDEF xp2)
int
ha_connect
::
external_lock
(
THD
*
thd
,
int
lock_type
)
{
int
rc
=
0
;
bool
del
=
false
,
xcheck
=
false
,
cras
=
false
;
bool
xcheck
=
false
,
cras
=
false
;
MODE
newmode
;
PTOS
options
=
GetTableOptionStruct
(
table
);
PGLOBAL
g
=
GetPlug
(
thd
,
xp
);
...
...
@@ -2949,7 +2949,6 @@ int ha_connect::external_lock(THD *thd, int lock_type)
// break;
case
SQLCOM_DELETE
:
case
SQLCOM_DELETE_MULTI
:
del
=
true
;
case
SQLCOM_TRUNCATE
:
newmode
=
MODE_DELETE
;
break
;
...
...
@@ -3207,7 +3206,7 @@ int ha_connect::delete_or_rename_table(const char *name, const char *to)
/* We have to retrieve the information about this table options. */
ha_table_option_struct
*
pos
;
char
key
[
MAX_DBKEY_LENGTH
],
db
[
128
],
tabname
[
128
];
int
rc
;
int
rc
=
0
;
uint
key_length
;
TABLE_SHARE
*
share
;
THD
*
thd
=
current_thd
;
...
...
@@ -3253,7 +3252,7 @@ int ha_connect::delete_or_rename_table(const char *name, const char *to)
err:
free_table_share
(
share
);
fin:
DBUG_RETURN
(
0
);
DBUG_RETURN
(
rc
);
}
// end of delete_or_rename_table
int
ha_connect
::
delete_table
(
const
char
*
name
)
...
...
storage/connect/tabutil.cpp
View file @
0a01953c
...
...
@@ -78,8 +78,8 @@ TABLE_SHARE *GetTableShare(PGLOBAL g, THD *thd, const char *db,
//table_list.init_one_table(db, strlen(db), name, strlen(name),
// NULL, TL_IGNORE);
k
=
sprintf
(
key
,
"%s"
,
db
);
k
+=
sprintf
(
key
+
++
k
,
"%s"
,
name
);
k
=
sprintf
(
key
,
"%s"
,
db
)
+
1
;
k
+=
sprintf
(
key
+
k
,
"%s"
,
name
);
key
[
++
k
]
=
0
;
if
(
!
(
s
=
alloc_table_share
(
db
,
name
,
key
,
++
k
)))
{
...
...
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