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
9f8842c2
Commit
9f8842c2
authored
Oct 05, 2007
by
holyfoot/hf@hfmain.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/hf/work/30286/my50-30286
into mysql.com:/home/hf/work/30286/my51-30286
parents
b768b1a5
1ab2fd9b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
mysql-test/r/gis.result
mysql-test/r/gis.result
+6
-0
mysql-test/t/gis.test
mysql-test/t/gis.test
+8
-0
sql/gstream.cc
sql/gstream.cc
+1
-1
No files found.
mysql-test/r/gis.result
View file @
9f8842c2
...
...
@@ -736,6 +736,12 @@ SELECT * FROM t1;
a
NULL
DROP TABLE t1;
CREATE TABLE `t1` ( `col9` set('a'), `col89` date);
INSERT INTO `t1` VALUES ('','0000-00-00');
select geomfromtext(col9,col89) as a from t1;
a
NULL
DROP TABLE t1;
End of 4.1 tests
create table t1 (s1 geometry not null,s2 char(100));
create trigger t1_bu before update on t1 for each row set new.s1 = null;
...
...
mysql-test/t/gis.test
View file @
9f8842c2
...
...
@@ -432,6 +432,14 @@ INSERT INTO t1 VALUES (NULL);
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
#
# Bug #30955 geomfromtext() crasher
#
CREATE
TABLE
`t1`
(
`col9`
set
(
'a'
),
`col89`
date
);
INSERT
INTO
`t1`
VALUES
(
''
,
'0000-00-00'
);
select
geomfromtext
(
col9
,
col89
)
as
a
from
t1
;
DROP
TABLE
t1
;
--
echo
End
of
4.1
tests
#
...
...
sql/gstream.cc
View file @
9f8842c2
...
...
@@ -44,7 +44,7 @@ bool Gis_read_stream::get_next_word(LEX_STRING *res)
skip_space
();
res
->
str
=
(
char
*
)
m_cur
;
/* The following will also test for \0 */
if
(
!
my_isvar_start
(
&
my_charset_bin
,
*
m_cur
))
if
(
(
m_cur
>=
m_limit
)
||
!
my_isvar_start
(
&
my_charset_bin
,
*
m_cur
))
return
1
;
/*
...
...
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