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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
b4eb961f
Commit
b4eb961f
authored
Aug 08, 2007
by
kostja@bodhi.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bodhi.(none):/opt/local/work/mysql-5.0-runtime
into bodhi.(none):/opt/local/work/mysql-5.1-runtime
parents
28f1f182
3c6eb000
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
4 deletions
+51
-4
sql/item.cc
sql/item.cc
+1
-1
tests/mysql_client_test.c
tests/mysql_client_test.c
+50
-3
No files found.
sql/item.cc
View file @
b4eb961f
...
@@ -1705,7 +1705,7 @@ void Item_ident_for_show::make_field(Send_field *tmp_field)
...
@@ -1705,7 +1705,7 @@ void Item_ident_for_show::make_field(Send_field *tmp_field)
tmp_field
->
type
=
field
->
type
();
tmp_field
->
type
=
field
->
type
();
tmp_field
->
flags
=
field
->
table
->
maybe_null
?
tmp_field
->
flags
=
field
->
table
->
maybe_null
?
(
field
->
flags
&
~
NOT_NULL_FLAG
)
:
field
->
flags
;
(
field
->
flags
&
~
NOT_NULL_FLAG
)
:
field
->
flags
;
tmp_field
->
decimals
=
0
;
tmp_field
->
decimals
=
field
->
decimals
()
;
}
}
/**********************************************/
/**********************************************/
...
...
tests/mysql_client_test.c
View file @
b4eb961f
...
@@ -16077,7 +16077,6 @@ static void test_bug24179()
...
@@ -16077,7 +16077,6 @@ static void test_bug24179()
/*
/*
Bug#28075 "COM_DEBUG crashes mysqld"
Bug#28075 "COM_DEBUG crashes mysqld"
Note: Test disabled because of failure in PushBuild.
*/
*/
static
void
test_bug28075
()
static
void
test_bug28075
()
...
@@ -16106,7 +16105,7 @@ static void test_bug27876()
...
@@ -16106,7 +16105,7 @@ static void test_bug27876()
int
rc
;
int
rc
;
MYSQL_RES
*
result
;
MYSQL_RES
*
result
;
char
utf8_func
[]
=
unsigned
char
utf8_func
[]
=
{
{
0xd1
,
0x84
,
0xd1
,
0x83
,
0xd0
,
0xbd
,
0xd0
,
0xba
,
0xd1
,
0x84
,
0xd1
,
0x83
,
0xd0
,
0xbd
,
0xd0
,
0xba
,
0xd1
,
0x86
,
0xd0
,
0xb8
,
0xd0
,
0xb9
,
0xd0
,
0xba
,
0xd1
,
0x86
,
0xd0
,
0xb8
,
0xd0
,
0xb9
,
0xd0
,
0xba
,
...
@@ -16114,7 +16113,7 @@ static void test_bug27876()
...
@@ -16114,7 +16113,7 @@ static void test_bug27876()
0x00
0x00
};
};
char
utf8_param
[]
=
unsigned
char
utf8_param
[]
=
{
{
0xd0
,
0xbf
,
0xd0
,
0xb0
,
0xd1
,
0x80
,
0xd0
,
0xb0
,
0xd0
,
0xbf
,
0xd0
,
0xb0
,
0xd1
,
0x80
,
0xd0
,
0xb0
,
0xd0
,
0xbc
,
0xd0
,
0xb5
,
0xd1
,
0x82
,
0xd1
,
0x8a
,
0xd0
,
0xbc
,
0xd0
,
0xb5
,
0xd1
,
0x82
,
0xd1
,
0x8a
,
...
@@ -16334,7 +16333,54 @@ static void test_bug29692()
...
@@ -16334,7 +16333,54 @@ static void test_bug29692()
mysql_close
(
conn
);
mysql_close
(
conn
);
}
}
/**
Bug#29306 Truncated data in MS Access with decimal (3,1) columns in a VIEW
*/
static
void
test_bug29306
()
{
MYSQL_FIELD
*
field
;
int
rc
;
MYSQL_RES
*
res
;
DBUG_ENTER
(
"test_bug29306"
);
myheader
(
"test_bug29306"
);
rc
=
mysql_query
(
mysql
,
"DROP TABLE IF EXISTS tab17557"
);
myquery
(
rc
);
rc
=
mysql_query
(
mysql
,
"DROP VIEW IF EXISTS view17557"
);
myquery
(
rc
);
rc
=
mysql_query
(
mysql
,
"CREATE TABLE tab17557 (dd decimal (3,1))"
);
myquery
(
rc
);
rc
=
mysql_query
(
mysql
,
"CREATE VIEW view17557 as SELECT dd FROM tab17557"
);
myquery
(
rc
);
rc
=
mysql_query
(
mysql
,
"INSERT INTO tab17557 VALUES (7.6)"
);
myquery
(
rc
);
/* Checking the view */
res
=
mysql_list_fields
(
mysql
,
"view17557"
,
NULL
);
while
((
field
=
mysql_fetch_field
(
res
)))
{
if
(
!
opt_silent
)
{
printf
(
"field name %s
\n
"
,
field
->
name
);
printf
(
"field table %s
\n
"
,
field
->
table
);
printf
(
"field decimals %d
\n
"
,
field
->
decimals
);
if
(
field
->
decimals
<
1
)
printf
(
"Error! No decimals!
\n
"
);
printf
(
"
\n\n
"
);
}
DIE_UNLESS
(
field
->
decimals
==
1
);
}
mysql_free_result
(
res
);
rc
=
mysql_query
(
mysql
,
"DROP TABLE tab17557"
);
myquery
(
rc
);
rc
=
mysql_query
(
mysql
,
"DROP VIEW view17557"
);
myquery
(
rc
);
DBUG_VOID_RETURN
;
}
/*
/*
Read and parse arguments and MySQL options from my.cnf
Read and parse arguments and MySQL options from my.cnf
*/
*/
...
@@ -16626,6 +16672,7 @@ static struct my_tests_st my_tests[]= {
...
@@ -16626,6 +16672,7 @@ static struct my_tests_st my_tests[]= {
{
"test_bug27592"
,
test_bug27592
},
{
"test_bug27592"
,
test_bug27592
},
{
"test_bug29687"
,
test_bug29687
},
{
"test_bug29687"
,
test_bug29687
},
{
"test_bug29692"
,
test_bug29692
},
{
"test_bug29692"
,
test_bug29692
},
{
"test_bug29306"
,
test_bug29306
},
{
0
,
0
}
{
0
,
0
}
};
};
...
...
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