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
4adb4256
Commit
4adb4256
authored
Apr 04, 2013
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Update some DBUG_PRINT to avois warning on Linux
modified: storage/connect/connect.cc storage/connect/ha_connect.cc
parent
7e0f591f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
storage/connect/connect.cc
storage/connect/connect.cc
+2
-2
storage/connect/ha_connect.cc
storage/connect/ha_connect.cc
+8
-8
No files found.
storage/connect/connect.cc
View file @
4adb4256
...
...
@@ -779,14 +779,14 @@ int CntIndexRange(PGLOBAL g, PTDB ptdb, const uchar* *key, uint *len,
return
-
1
;
else
if
(
!
((
PTDBASE
)
ptdb
)
->
GetDef
()
->
Indexable
())
{
sprintf
(
g
->
Message
,
"Table %s is not indexable"
,
ptdb
->
GetName
());
DBUG_PRINT
(
"Range"
,
(
g
->
Message
));
DBUG_PRINT
(
"Range"
,
(
"%s"
,
g
->
Message
));
return
-
1
;
}
else
tdbp
=
(
PTDBDOX
)
ptdb
;
if
(
!
tdbp
->
To_Link
||
!
tdbp
->
To_Kindex
)
{
sprintf
(
g
->
Message
,
"Index not initialized for table %s"
,
tdbp
->
Name
);
DBUG_PRINT
(
"Range"
,
(
g
->
Message
));
DBUG_PRINT
(
"Range"
,
(
"%s"
,
g
->
Message
));
return
-
1
;
}
else
xbp
=
(
XXBASE
*
)
tdbp
->
To_Kindex
;
...
...
storage/connect/ha_connect.cc
View file @
4adb4256
...
...
@@ -1527,13 +1527,13 @@ int ha_connect::MakeRecord(char *buf)
if
(
value
->
GetIntValue
())
rc
=
HA_ERR_WRONG_IN_RECORD
;
DBUG_PRINT
(
"MakeRecord"
,
(
p
));
DBUG_PRINT
(
"MakeRecord"
,
(
"%s"
,
p
));
}
// endif store
}
else
if
(
fp
->
store
(
value
->
GetFloatValue
()))
{
rc
=
HA_ERR_WRONG_IN_RECORD
;
DBUG_PRINT
(
"MakeRecord"
,
(
value
->
GetCharString
(
val
)));
DBUG_PRINT
(
"MakeRecord"
,
(
"%s"
,
value
->
GetCharString
(
val
)));
}
// endif store
fp
->
set_notnull
();
...
...
@@ -2220,7 +2220,7 @@ int ha_connect::write_row(uchar *buf)
// Return result code from write operation
if
(
CntWriteRow
(
g
,
tdbp
))
{
DBUG_PRINT
(
"write_row"
,
(
g
->
Message
));
DBUG_PRINT
(
"write_row"
,
(
"%s"
,
g
->
Message
));
printf
(
"write_row: %s
\n
"
,
g
->
Message
);
rc
=
HA_ERR_INTERNAL_ERROR
;
}
// endif RC
...
...
@@ -2265,7 +2265,7 @@ int ha_connect::update_row(const uchar *old_data, uchar *new_data)
return
rc
;
if
(
CntUpdateRow
(
g
,
tdbp
))
{
DBUG_PRINT
(
"update_row"
,
(
g
->
Message
));
DBUG_PRINT
(
"update_row"
,
(
"%s"
,
g
->
Message
));
printf
(
"update_row CONNECT: %s
\n
"
,
g
->
Message
);
rc
=
HA_ERR_INTERNAL_ERROR
;
}
// endif RC
...
...
@@ -2322,7 +2322,7 @@ int ha_connect::index_init(uint idx, bool sorted)
indexing
=
CntIndexInit
(
g
,
tdbp
,
(
signed
)
idx
);
if
(
indexing
<=
0
)
{
DBUG_PRINT
(
"index_init"
,
(
g
->
Message
));
DBUG_PRINT
(
"index_init"
,
(
"%s"
,
g
->
Message
));
printf
(
"index_init CONNECT: %s
\n
"
,
g
->
Message
);
active_index
=
MAX_KEY
;
rc
=
HA_ERR_INTERNAL_ERROR
;
...
...
@@ -2374,7 +2374,7 @@ int ha_connect::ReadIndexed(uchar *buf, OPVAL op, const uchar *key, uint key_len
rc
=
(
op
==
OP_SAME
)
?
HA_ERR_END_OF_FILE
:
HA_ERR_KEY_NOT_FOUND
;
break
;
default:
// Read error
DBUG_PRINT
(
"ReadIndexed"
,
(
xp
->
g
->
Message
));
DBUG_PRINT
(
"ReadIndexed"
,
(
"%s"
,
xp
->
g
->
Message
));
printf
(
"ReadIndexed: %s
\n
"
,
xp
->
g
->
Message
);
rc
=
HA_ERR_INTERNAL_ERROR
;
}
// endswitch RC
...
...
@@ -4140,9 +4140,9 @@ int ha_connect::create(const char *name, TABLE *table_arg,
if
(
*
buf
!=
'#'
)
{
// Check for incompatible options
if
(
options
->
sepindex
)
{
my_
printf_error
(
ER_UNKNOWN_ERROR
,
my_
message
(
ER_UNKNOWN_ERROR
,
"SEPINDEX is incompatible with unspecified file name"
,
MYF
(
0
)
,
options
->
type
);
MYF
(
0
));
DBUG_RETURN
(
HA_ERR_UNSUPPORTED
);
}
else
if
(
GetTypeID
(
options
->
type
)
==
TAB_VEC
)
if
(
!
table
->
s
->
max_rows
||
options
->
split
)
{
...
...
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