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
52a9fd52
Commit
52a9fd52
authored
Dec 17, 2002
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beautifying the error messages
parent
a83ed34f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
sql/item.cc
sql/item.cc
+1
-1
sql/sql_base.cc
sql/sql_base.cc
+1
-1
No files found.
sql/item.cc
View file @
52a9fd52
...
@@ -178,7 +178,7 @@ const char *Item_ident::full_name() const
...
@@ -178,7 +178,7 @@ const char *Item_ident::full_name() const
char
*
tmp
;
char
*
tmp
;
if
(
!
table_name
)
if
(
!
table_name
)
return
field_name
?
field_name
:
name
?
name
:
"tmp_field"
;
return
field_name
?
field_name
:
name
?
name
:
"tmp_field"
;
if
(
db_name
)
if
(
db_name
&&
db_name
[
0
]
)
{
{
tmp
=
(
char
*
)
sql_alloc
((
uint
)
strlen
(
db_name
)
+
(
uint
)
strlen
(
table_name
)
+
tmp
=
(
char
*
)
sql_alloc
((
uint
)
strlen
(
db_name
)
+
(
uint
)
strlen
(
table_name
)
+
(
uint
)
strlen
(
field_name
)
+
3
);
(
uint
)
strlen
(
field_name
)
+
3
);
...
...
sql/sql_base.cc
View file @
52a9fd52
...
@@ -1707,7 +1707,7 @@ find_field_in_tables(THD *thd, Item_ident *item, TABLE_LIST *tables,
...
@@ -1707,7 +1707,7 @@ find_field_in_tables(THD *thd, Item_ident *item, TABLE_LIST *tables,
if
(
!
found_table
&&
report_error
)
if
(
!
found_table
&&
report_error
)
{
{
char
buff
[
NAME_LEN
*
2
+
1
];
char
buff
[
NAME_LEN
*
2
+
1
];
if
(
db
)
if
(
db
&&
db
[
0
]
)
{
{
strxnmov
(
buff
,
sizeof
(
buff
)
-
1
,
db
,
"."
,
table_name
,
NullS
);
strxnmov
(
buff
,
sizeof
(
buff
)
-
1
,
db
,
"."
,
table_name
,
NullS
);
table_name
=
buff
;
table_name
=
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