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
7813e480
Commit
7813e480
authored
Jul 11, 2002
by
hf@bisonxp.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Found bugs fixed
parent
d8c94e94
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
3 deletions
+20
-3
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+5
-1
sql/item.cc
sql/item.cc
+3
-0
sql/item_strfunc.cc
sql/item_strfunc.cc
+5
-0
sql/sql_select.cc
sql/sql_select.cc
+3
-0
sql/sql_table.cc
sql/sql_table.cc
+4
-2
No files found.
libmysqld/lib_sql.cc
View file @
7813e480
...
...
@@ -793,6 +793,7 @@ net_field_length(uchar **packet)
return
(
ulong
)
uint4korr
(
pos
+
1
);
}
bool
select_send
::
send_data
(
List
<
Item
>
&
items
)
{
List_iterator_fast
<
Item
>
li
(
items
);
...
...
@@ -956,7 +957,7 @@ int embedded_send_row(THD *thd, int n_fields, char *data, int data_len)
result
->
prev_ptr
=
&
cur
->
next
;
to
=
(
char
*
)
(
cur
->
data
+
n_fields
+
1
);
cp
=
(
uchar
*
)
data
;
end_field
=
cur
->
data
+
n_fields
+
1
;
end_field
=
cur
->
data
+
n_fields
;
for
(
cur_field
=
cur
->
data
;
cur_field
<
end_field
;
++
cur_field
,
++
mysql_fields
)
{
...
...
@@ -975,6 +976,9 @@ int embedded_send_row(THD *thd, int n_fields, char *data, int data_len)
mysql_fields
->
max_length
=
len
;
}
}
*
cur_field
=
to
;
DBUG_RETURN
(
0
);
}
sql/item.cc
View file @
7813e480
...
...
@@ -469,6 +469,9 @@ bool Item_field::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
cause error ER_NON_UNIQ_ERROR in find_field_in_tables.
*/
SELECT_LEX
*
last
=
0
;
#ifdef EMBEDDED_LIBRARY
thd
->
net
.
last_errno
=
0
;
#endif
for
(
SELECT_LEX
*
sl
=
thd
->
lex
.
select
->
outer_select
();
sl
&&
!
tmp
;
sl
=
sl
->
outer_select
())
...
...
sql/item_strfunc.cc
View file @
7813e480
...
...
@@ -1248,10 +1248,15 @@ String *Item_func_database::val_str(String *str)
String
*
Item_func_user
::
val_str
(
String
*
str
)
{
THD
*
thd
=
current_thd
;
#ifdef EMBEDDED_LIBRARY
if
(
str
->
copy
(
"localuser@localhost"
,
(
uint
)
strlen
(
"localuser@localhost"
)))
return
&
empty_string
;
#else
if
(
str
->
copy
((
const
char
*
)
thd
->
user
,(
uint
)
strlen
(
thd
->
user
))
||
str
->
append
(
'@'
)
||
str
->
append
(
thd
->
host
?
thd
->
host
:
thd
->
ip
?
thd
->
ip
:
""
))
return
&
empty_string
;
#endif
return
str
;
}
...
...
sql/sql_select.cc
View file @
7813e480
...
...
@@ -5249,6 +5249,9 @@ end_update(JOIN *join, JOIN_TAB *join_tab __attribute__((unused)),
{
Item
*
item
=
*
group
->
item
;
item
->
save_org_in_field
(
group
->
field
);
#ifdef EMBEDDED_LIBRARY
join
->
thd
->
net
.
last_errno
=
0
;
#endif
/* Store in the used key if the field was 0 */
if
(
item
->
maybe_null
)
group
->
buff
[
-
1
]
=
item
->
null_value
?
1
:
0
;
...
...
sql/sql_table.cc
View file @
7813e480
...
...
@@ -939,8 +939,7 @@ static int send_check_errmsg(THD* thd, TABLE_LIST* table,
net_store_data
(
packet
,
"error"
);
net_store_data
(
packet
,
errmsg
);
thd
->
net
.
last_error
[
0
]
=
0
;
if
(
my_net_write
(
&
thd
->
net
,
(
char
*
)
thd
->
packet
.
ptr
(),
packet
->
length
()))
if
(
SEND_ROW
(
thd
,
&
thd
->
net
,
4
,
(
char
*
)
thd
->
packet
.
ptr
(),
packet
->
length
()))
return
-
1
;
return
1
;
}
...
...
@@ -1150,6 +1149,9 @@ static int mysql_admin_table(THD* thd, TABLE_LIST* tables,
}
int
result_code
=
(
table
->
table
->
file
->*
operator_func
)(
thd
,
check_opt
);
#ifdef EMBEDDED_LIBRARY
thd
->
net
.
last_errno
=
0
;
// these errors shouldn't get client
#endif
packet
->
length
(
0
);
net_store_data
(
packet
,
table_name
);
net_store_data
(
packet
,
operator_name
);
...
...
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