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
e3579917
Commit
e3579917
authored
Feb 26, 2003
by
bar@bar.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set_var.cc, sql_table.cc, handler.cc, field.cc:
Less default_charset_info
parent
1a2c7da8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
sql/field.cc
sql/field.cc
+1
-1
sql/handler.cc
sql/handler.cc
+1
-1
sql/set_var.cc
sql/set_var.cc
+1
-1
sql/sql_table.cc
sql/sql_table.cc
+1
-1
No files found.
sql/field.cc
View file @
e3579917
...
...
@@ -4549,7 +4549,7 @@ void Field_geom::set_key_image(char *buff,uint length,CHARSET_INFO *cs)
void
Field_geom
::
sql_type
(
String
&
res
)
const
{
res
.
set
(
"geometry"
,
8
,
default_charset_info
);
res
.
set
(
"geometry"
,
8
,
&
my_charset_latin1
);
}
int
Field_blob
::
key_cmp
(
const
byte
*
key_ptr
,
uint
max_key_length
)
...
...
sql/handler.cc
View file @
e3579917
...
...
@@ -689,7 +689,7 @@ void handler::print_error(int error, myf errflag)
{
/* Write the dupplicated key in the error message */
char
key
[
MAX_KEY_LENGTH
];
String
str
(
key
,
sizeof
(
key
),
default
_charset_info
);
String
str
(
key
,
sizeof
(
key
),
system
_charset_info
);
key_unpack
(
&
str
,
table
,(
uint
)
key_nr
);
uint
max_length
=
MYSQL_ERRMSG_SIZE
-
(
uint
)
strlen
(
ER
(
ER_DUP_ENTRY
));
if
(
str
.
length
()
>=
max_length
)
...
...
sql/set_var.cc
View file @
e3579917
...
...
@@ -1074,7 +1074,7 @@ byte *sys_var_thd_sql_mode::value_ptr(THD *thd, enum_var_type type)
{
ulong
val
;
char
buff
[
256
];
String
tmp
(
buff
,
sizeof
(
buff
),
default_charset_info
);
String
tmp
(
buff
,
sizeof
(
buff
),
&
my_charset_latin1
);
my_bool
found
=
0
;
tmp
.
length
(
0
);
...
...
sql/sql_table.cc
View file @
e3579917
...
...
@@ -247,7 +247,7 @@ int mysql_rm_table_part2(THD *thd, TABLE_LIST *tables, bool if_exists,
{
if
(
wrong_tables
.
length
())
wrong_tables
.
append
(
','
);
wrong_tables
.
append
(
String
(
table
->
real_name
,
default
_charset_info
));
wrong_tables
.
append
(
String
(
table
->
real_name
,
system
_charset_info
));
}
}
thd
->
tmp_table_used
=
tmp_table_deleted
;
...
...
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