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
2b3789dd
Commit
2b3789dd
authored
Dec 05, 2006
by
mskold/marty@linux.site
Browse files
Options
Browse Files
Download
Plain Diff
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/windows/Linux_space/MySQL/mysql-5.1
parents
a63d255b
f8bd5d31
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
8 deletions
+18
-8
mysql-test/r/type_varchar.result
mysql-test/r/type_varchar.result
+1
-0
mysql-test/t/type_varchar.test
mysql-test/t/type_varchar.test
+1
-0
sql/item_func.cc
sql/item_func.cc
+14
-5
storage/ndb/src/common/util/File.cpp
storage/ndb/src/common/util/File.cpp
+1
-1
storage/ndb/tools/ndb_condig.cpp
storage/ndb/tools/ndb_condig.cpp
+1
-2
No files found.
mysql-test/r/type_varchar.result
View file @
2b3789dd
...
@@ -488,3 +488,4 @@ t 0
...
@@ -488,3 +488,4 @@ t 0
Warnings:
Warnings:
Warning 1292 Truncated incorrect INTEGER value: '1a'
Warning 1292 Truncated incorrect INTEGER value: '1a'
Warning 1292 Truncated incorrect INTEGER value: 't'
Warning 1292 Truncated incorrect INTEGER value: 't'
DROP TABLE t1;
mysql-test/t/type_varchar.test
View file @
2b3789dd
...
@@ -196,3 +196,4 @@ INSERT INTO t1 VALUES (10), (50), (30), ('1a'), (60), ('t');
...
@@ -196,3 +196,4 @@ INSERT INTO t1 VALUES (10), (50), (30), ('1a'), (60), ('t');
SELECT
a
,(
a
+
0
)
FROM
t1
ORDER
BY
a
;
SELECT
a
,(
a
+
0
)
FROM
t1
ORDER
BY
a
;
SELECT
a
,(
a
DIV
2
)
FROM
t1
ORDER
BY
a
;
SELECT
a
,(
a
DIV
2
)
FROM
t1
ORDER
BY
a
;
SELECT
a
,
CAST
(
a
AS
SIGNED
)
FROM
t1
ORDER
BY
a
;
SELECT
a
,
CAST
(
a
AS
SIGNED
)
FROM
t1
ORDER
BY
a
;
DROP
TABLE
t1
;
sql/item_func.cc
View file @
2b3789dd
...
@@ -897,7 +897,8 @@ void Item_func_signed::print(String *str)
...
@@ -897,7 +897,8 @@ void Item_func_signed::print(String *str)
longlong
Item_func_signed
::
val_int_from_str
(
int
*
error
)
longlong
Item_func_signed
::
val_int_from_str
(
int
*
error
)
{
{
char
buff
[
MAX_FIELD_WIDTH
],
*
end
;
char
buff
[
MAX_FIELD_WIDTH
],
*
end
,
*
start
;
uint32
length
;
String
tmp
(
buff
,
sizeof
(
buff
),
&
my_charset_bin
),
*
res
;
String
tmp
(
buff
,
sizeof
(
buff
),
&
my_charset_bin
),
*
res
;
longlong
value
;
longlong
value
;
...
@@ -913,13 +914,21 @@ longlong Item_func_signed::val_int_from_str(int *error)
...
@@ -913,13 +914,21 @@ longlong Item_func_signed::val_int_from_str(int *error)
return
0
;
return
0
;
}
}
null_value
=
0
;
null_value
=
0
;
end
=
(
char
*
)
res
->
ptr
()
+
res
->
length
();
start
=
(
char
*
)
res
->
ptr
();
value
=
my_strtoll10
(
res
->
ptr
(),
&
end
,
error
);
length
=
res
->
length
();
if
(
*
error
>
0
||
end
!=
res
->
ptr
()
+
res
->
length
())
end
=
start
+
length
;
value
=
my_strtoll10
(
start
,
&
end
,
error
);
if
(
*
error
>
0
||
end
!=
start
+
length
)
{
char
err_buff
[
128
];
String
err_tmp
(
err_buff
,(
uint32
)
sizeof
(
err_buff
),
system_charset_info
);
err_tmp
.
copy
(
start
,
length
,
system_charset_info
);
push_warning_printf
(
current_thd
,
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
push_warning_printf
(
current_thd
,
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
ER_TRUNCATED_WRONG_VALUE
,
ER_TRUNCATED_WRONG_VALUE
,
ER
(
ER_TRUNCATED_WRONG_VALUE
),
"INTEGER"
,
ER
(
ER_TRUNCATED_WRONG_VALUE
),
"INTEGER"
,
res
->
c_ptr
());
err_tmp
.
c_ptr
());
}
return
value
;
return
value
;
}
}
...
...
storage/ndb/src/common/util/File.cpp
View file @
2b3789dd
storage/ndb/tools/ndb_condig.cpp
View file @
2b3789dd
...
@@ -37,7 +37,6 @@ static int g_verbose = 0;
...
@@ -37,7 +37,6 @@ static int g_verbose = 0;
static
int
try_reconnect
=
3
;
static
int
try_reconnect
=
3
;
static
int
g_nodes
,
g_connections
,
g_section
;
static
int
g_nodes
,
g_connections
,
g_section
;
static
const
char
*
g_connectstring
=
0
;
static
const
char
*
g_query
=
0
;
static
const
char
*
g_query
=
0
;
static
int
g_nodeid
=
0
;
static
int
g_nodeid
=
0
;
...
@@ -486,7 +485,7 @@ fetch_configuration()
...
@@ -486,7 +485,7 @@ fetch_configuration()
ndb_mgm_set_error_stream
(
mgm
,
stderr
);
ndb_mgm_set_error_stream
(
mgm
,
stderr
);
if
(
ndb_mgm_set_connectstring
(
mgm
,
g_connectstring
))
if
(
ndb_mgm_set_connectstring
(
mgm
,
opt_connect_str
))
{
{
fprintf
(
stderr
,
"* %5d: %s
\n
"
,
fprintf
(
stderr
,
"* %5d: %s
\n
"
,
ndb_mgm_get_latest_error
(
mgm
),
ndb_mgm_get_latest_error
(
mgm
),
...
...
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