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
0f47087e
Commit
0f47087e
authored
Jul 14, 2003
by
ram@mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for the bug #841: wrong number of warnings
parent
92b3a231
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
18 deletions
+17
-18
sql/sql_insert.cc
sql/sql_insert.cc
+9
-10
sql/sql_load.cc
sql/sql_load.cc
+2
-2
sql/sql_table.cc
sql/sql_table.cc
+2
-2
sql/sql_update.cc
sql/sql_update.cc
+4
-4
No files found.
sql/sql_insert.cc
View file @
0f47087e
...
@@ -404,13 +404,12 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list,
...
@@ -404,13 +404,12 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list,
{
{
char
buff
[
160
];
char
buff
[
160
];
if
(
duplic
==
DUP_IGNORE
)
if
(
duplic
==
DUP_IGNORE
)
sprintf
(
buff
,
ER
(
ER_INSERT_INFO
),
info
.
records
,
sprintf
(
buff
,
ER
(
ER_INSERT_INFO
),
(
ulong
)
info
.
records
,
(
lock_type
==
TL_WRITE_DELAYED
)
?
0
:
(
lock_type
==
TL_WRITE_DELAYED
)
?
(
ulong
)
0
:
info
.
records
-
info
.
copied
,
(
ulong
)
(
info
.
records
-
info
.
copied
),
(
ulong
)
thd
->
cuted_fields
);
thd
->
cuted_fields
);
else
else
sprintf
(
buff
,
ER
(
ER_INSERT_INFO
),
info
.
records
,
info
.
deleted
,
sprintf
(
buff
,
ER
(
ER_INSERT_INFO
),
(
ulong
)
info
.
records
,
thd
->
cuted_fields
);
(
ulong
)
info
.
deleted
,
(
ulong
)
thd
->
cuted_fields
);
::
send_ok
(
thd
,
info
.
copied
+
info
.
deleted
,(
ulonglong
)
id
,
buff
);
::
send_ok
(
thd
,
info
.
copied
+
info
.
deleted
,(
ulonglong
)
id
,
buff
);
}
}
free_underlaid_joins
(
thd
,
&
thd
->
lex
.
select_lex
);
free_underlaid_joins
(
thd
,
&
thd
->
lex
.
select_lex
);
...
@@ -1494,11 +1493,11 @@ bool select_insert::send_eof()
...
@@ -1494,11 +1493,11 @@ bool select_insert::send_eof()
{
{
char
buff
[
160
];
char
buff
[
160
];
if
(
info
.
handle_duplicates
==
DUP_IGNORE
)
if
(
info
.
handle_duplicates
==
DUP_IGNORE
)
sprintf
(
buff
,
ER
(
ER_INSERT_INFO
),
info
.
records
,
info
.
records
-
info
.
copied
,
sprintf
(
buff
,
ER
(
ER_INSERT_INFO
),
(
ulong
)
info
.
records
,
thd
->
cuted_fields
);
(
ulong
)
(
info
.
records
-
info
.
copied
),
(
ulong
)
thd
->
cuted_fields
);
else
else
sprintf
(
buff
,
ER
(
ER_INSERT_INFO
),
info
.
records
,
info
.
deleted
,
sprintf
(
buff
,
ER
(
ER_INSERT_INFO
),
(
ulong
)
info
.
records
,
thd
->
cuted_fields
);
(
ulong
)
info
.
deleted
,
(
ulong
)
thd
->
cuted_fields
);
::
send_ok
(
thd
,
info
.
copied
+
info
.
deleted
,
last_insert_id
,
buff
);
::
send_ok
(
thd
,
info
.
copied
+
info
.
deleted
,
last_insert_id
,
buff
);
return
0
;
return
0
;
}
}
...
...
sql/sql_load.cc
View file @
0f47087e
...
@@ -318,8 +318,8 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
...
@@ -318,8 +318,8 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
error
=
-
1
;
// Error on read
error
=
-
1
;
// Error on read
goto
err
;
goto
err
;
}
}
sprintf
(
name
,
ER
(
ER_LOAD_INFO
),
info
.
records
,
info
.
deleted
,
sprintf
(
name
,
ER
(
ER_LOAD_INFO
),
(
ulong
)
info
.
records
,
(
ulong
)
info
.
deleted
,
info
.
records
-
info
.
copied
,
thd
->
cuted_fields
);
(
ulong
)
(
info
.
records
-
info
.
copied
),
(
ulong
)
thd
->
cuted_fields
);
send_ok
(
thd
,
info
.
copied
+
info
.
deleted
,
0L
,
name
);
send_ok
(
thd
,
info
.
copied
+
info
.
deleted
,
0L
,
name
);
// on the slave thd->query is never initialized
// on the slave thd->query is never initialized
if
(
!
thd
->
slave_thread
)
if
(
!
thd
->
slave_thread
)
...
...
sql/sql_table.cc
View file @
0f47087e
...
@@ -2416,8 +2416,8 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
...
@@ -2416,8 +2416,8 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
query_cache_invalidate3
(
thd
,
table_list
,
0
);
query_cache_invalidate3
(
thd
,
table_list
,
0
);
end_temporary:
end_temporary:
sprintf
(
tmp_name
,
ER
(
ER_INSERT_INFO
),(
ulong
)
(
copied
+
deleted
),
sprintf
(
tmp_name
,
ER
(
ER_INSERT_INFO
),
(
ulong
)
(
copied
+
deleted
),
(
ulong
)
deleted
,
thd
->
cuted_fields
);
(
ulong
)
deleted
,
(
ulong
)
thd
->
cuted_fields
);
send_ok
(
thd
,
copied
+
deleted
,
0L
,
tmp_name
);
send_ok
(
thd
,
copied
+
deleted
,
0L
,
tmp_name
);
thd
->
some_tables_deleted
=
0
;
thd
->
some_tables_deleted
=
0
;
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
...
...
sql/sql_update.cc
View file @
0f47087e
...
@@ -373,8 +373,8 @@ int mysql_update(THD *thd,
...
@@ -373,8 +373,8 @@ int mysql_update(THD *thd,
else
else
{
{
char
buff
[
80
];
char
buff
[
80
];
sprintf
(
buff
,
ER
(
ER_UPDATE_INFO
),
(
long
)
found
,
(
long
)
updated
,
sprintf
(
buff
,
ER
(
ER_UPDATE_INFO
),
(
ulong
)
found
,
(
u
long
)
updated
,
(
long
)
thd
->
cuted_fields
);
(
u
long
)
thd
->
cuted_fields
);
send_ok
(
thd
,
send_ok
(
thd
,
(
thd
->
client_capabilities
&
CLIENT_FOUND_ROWS
)
?
found
:
updated
,
(
thd
->
client_capabilities
&
CLIENT_FOUND_ROWS
)
?
found
:
updated
,
thd
->
insert_id_used
?
thd
->
insert_id
()
:
0L
,
buff
);
thd
->
insert_id_used
?
thd
->
insert_id
()
:
0L
,
buff
);
...
@@ -993,8 +993,8 @@ bool multi_update::send_eof()
...
@@ -993,8 +993,8 @@ bool multi_update::send_eof()
}
}
sprintf
(
buff
,
ER
(
ER_UPDATE_INFO
),
(
long
)
found
,
(
long
)
updated
,
sprintf
(
buff
,
ER
(
ER_UPDATE_INFO
),
(
ulong
)
found
,
(
u
long
)
updated
,
(
long
)
thd
->
cuted_fields
);
(
u
long
)
thd
->
cuted_fields
);
::
send_ok
(
thd
,
::
send_ok
(
thd
,
(
thd
->
client_capabilities
&
CLIENT_FOUND_ROWS
)
?
found
:
updated
,
(
thd
->
client_capabilities
&
CLIENT_FOUND_ROWS
)
?
found
:
updated
,
thd
->
insert_id_used
?
thd
->
insert_id
()
:
0L
,
buff
);
thd
->
insert_id_used
?
thd
->
insert_id
()
:
0L
,
buff
);
...
...
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