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
2870719c
Commit
2870719c
authored
Feb 26, 2003
by
ram@mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
All segments of SPATIAL keys MUST be NOT NULL.
Allow NULL geometry fields.
parent
36834768
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
52 additions
and
28 deletions
+52
-28
include/mysqld_error.h
include/mysqld_error.h
+2
-1
sql/share/czech/errmsg.txt
sql/share/czech/errmsg.txt
+2
-1
sql/share/danish/errmsg.txt
sql/share/danish/errmsg.txt
+2
-1
sql/share/dutch/errmsg.txt
sql/share/dutch/errmsg.txt
+2
-1
sql/share/english/errmsg.txt
sql/share/english/errmsg.txt
+2
-1
sql/share/estonian/errmsg.txt
sql/share/estonian/errmsg.txt
+2
-1
sql/share/french/errmsg.txt
sql/share/french/errmsg.txt
+2
-1
sql/share/german/errmsg.txt
sql/share/german/errmsg.txt
+1
-0
sql/share/greek/errmsg.txt
sql/share/greek/errmsg.txt
+2
-1
sql/share/hungarian/errmsg.txt
sql/share/hungarian/errmsg.txt
+2
-1
sql/share/italian/errmsg.txt
sql/share/italian/errmsg.txt
+2
-1
sql/share/japanese/errmsg.txt
sql/share/japanese/errmsg.txt
+2
-1
sql/share/korean/errmsg.txt
sql/share/korean/errmsg.txt
+2
-1
sql/share/norwegian-ny/errmsg.txt
sql/share/norwegian-ny/errmsg.txt
+2
-1
sql/share/norwegian/errmsg.txt
sql/share/norwegian/errmsg.txt
+2
-1
sql/share/polish/errmsg.txt
sql/share/polish/errmsg.txt
+2
-1
sql/share/portuguese/errmsg.txt
sql/share/portuguese/errmsg.txt
+2
-1
sql/share/romanian/errmsg.txt
sql/share/romanian/errmsg.txt
+2
-1
sql/share/russian/errmsg.txt
sql/share/russian/errmsg.txt
+2
-1
sql/share/serbian/errmsg.txt
sql/share/serbian/errmsg.txt
+2
-1
sql/share/slovak/errmsg.txt
sql/share/slovak/errmsg.txt
+2
-1
sql/share/spanish/errmsg.txt
sql/share/spanish/errmsg.txt
+2
-1
sql/share/swedish/errmsg.txt
sql/share/swedish/errmsg.txt
+2
-1
sql/share/ukrainian/errmsg.txt
sql/share/ukrainian/errmsg.txt
+2
-1
sql/sql_table.cc
sql/sql_table.cc
+5
-5
No files found.
include/mysqld_error.h
View file @
2870719c
...
@@ -266,4 +266,5 @@
...
@@ -266,4 +266,5 @@
#define ER_SELECT_REDUCED 1247
#define ER_SELECT_REDUCED 1247
#define ER_TABLENAME_NOT_ALLOWED_HERE 1248
#define ER_TABLENAME_NOT_ALLOWED_HERE 1248
#define ER_NOT_SUPPORTED_AUTH_MODE 1249
#define ER_NOT_SUPPORTED_AUTH_MODE 1249
#define ER_ERROR_MESSAGES 250
#define ER_SPATIAL_CANT_HAVE_NULL 1250
#define ER_ERROR_MESSAGES 251
sql/share/czech/errmsg.txt
View file @
2870719c
...
@@ -259,4 +259,5 @@ v/*
...
@@ -259,4 +259,5 @@ v/*
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/danish/errmsg.txt
View file @
2870719c
...
@@ -253,4 +253,5 @@
...
@@ -253,4 +253,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/dutch/errmsg.txt
View file @
2870719c
...
@@ -261,4 +261,5 @@
...
@@ -261,4 +261,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/english/errmsg.txt
View file @
2870719c
...
@@ -250,4 +250,5 @@
...
@@ -250,4 +250,5 @@
"Every derived table must have it's own alias",
"Every derived table must have it's own alias",
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/estonian/errmsg.txt
View file @
2870719c
...
@@ -255,4 +255,5 @@
...
@@ -255,4 +255,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/french/errmsg.txt
View file @
2870719c
...
@@ -250,4 +250,5 @@
...
@@ -250,4 +250,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/german/errmsg.txt
View file @
2870719c
...
@@ -261,3 +261,4 @@
...
@@ -261,3 +261,4 @@
"Select %u wurde während der Optimierung reduziert.",
"Select %u wurde während der Optimierung reduziert.",
"Tabelle '%-.64s', die in einem der SELECT-Befehle verwendet wurde kann nicht in %-.32s verwendet werden",
"Tabelle '%-.64s', die in einem der SELECT-Befehle verwendet wurde kann nicht in %-.32s verwendet werden",
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client",
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client",
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/greek/errmsg.txt
View file @
2870719c
...
@@ -250,4 +250,5 @@
...
@@ -250,4 +250,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/hungarian/errmsg.txt
View file @
2870719c
...
@@ -252,4 +252,5 @@
...
@@ -252,4 +252,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/italian/errmsg.txt
View file @
2870719c
...
@@ -250,4 +250,5 @@
...
@@ -250,4 +250,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/japanese/errmsg.txt
View file @
2870719c
...
@@ -252,4 +252,5 @@
...
@@ -252,4 +252,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/korean/errmsg.txt
View file @
2870719c
...
@@ -250,4 +250,5 @@
...
@@ -250,4 +250,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/norwegian-ny/errmsg.txt
View file @
2870719c
...
@@ -252,4 +252,5 @@
...
@@ -252,4 +252,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/norwegian/errmsg.txt
View file @
2870719c
...
@@ -252,4 +252,5 @@
...
@@ -252,4 +252,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/polish/errmsg.txt
View file @
2870719c
...
@@ -254,4 +254,5 @@
...
@@ -254,4 +254,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/portuguese/errmsg.txt
View file @
2870719c
...
@@ -250,4 +250,5 @@
...
@@ -250,4 +250,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/romanian/errmsg.txt
View file @
2870719c
...
@@ -254,4 +254,5 @@
...
@@ -254,4 +254,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/russian/errmsg.txt
View file @
2870719c
...
@@ -253,4 +253,5 @@
...
@@ -253,4 +253,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u ",
"Select %u ",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/serbian/errmsg.txt
View file @
2870719c
...
@@ -246,4 +246,5 @@
...
@@ -246,4 +246,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/slovak/errmsg.txt
View file @
2870719c
...
@@ -258,4 +258,5 @@
...
@@ -258,4 +258,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/spanish/errmsg.txt
View file @
2870719c
...
@@ -251,4 +251,5 @@
...
@@ -251,4 +251,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/swedish/errmsg.txt
View file @
2870719c
...
@@ -250,4 +250,5 @@
...
@@ -250,4 +250,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/share/ukrainian/errmsg.txt
View file @
2870719c
...
@@ -255,4 +255,5 @@
...
@@ -255,4 +255,5 @@
"Every derived table must have it's own alias"
"Every derived table must have it's own alias"
"Select %u was iii",
"Select %u was iii",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
\ No newline at end of file
"All parts of a SPATIAL KEY must be NOT NULL"
sql/sql_table.cc
View file @
2870719c
...
@@ -478,11 +478,6 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
...
@@ -478,11 +478,6 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
blob_columns
++
;
blob_columns
++
;
break
;
break
;
case
FIELD_TYPE_GEOMETRY
:
case
FIELD_TYPE_GEOMETRY
:
if
(
!
(
sql_field
->
flags
&
NOT_NULL_FLAG
))
{
my_error
(
ER_BAD_NULL_ERROR
,
MYF
(
0
),
sql_field
->
field_name
);
DBUG_RETURN
(
-
1
);
}
sql_field
->
pack_flag
=
FIELDFLAG_GEOM
|
sql_field
->
pack_flag
=
FIELDFLAG_GEOM
|
pack_length_to_packflag
(
sql_field
->
pack_length
-
pack_length_to_packflag
(
sql_field
->
pack_length
-
portable_sizeof_char_ptr
);
portable_sizeof_char_ptr
);
...
@@ -741,6 +736,11 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
...
@@ -741,6 +736,11 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
MYF
(
0
),
column
->
field_name
);
MYF
(
0
),
column
->
field_name
);
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
}
}
if
(
key
->
type
==
Key
::
SPATIAL
)
{
my_error
(
ER_SPATIAL_CANT_HAVE_NULL
,
MYF
(
0
));
DBUG_RETURN
(
-
1
);
}
key_info
->
flags
|=
HA_NULL_PART_KEY
;
key_info
->
flags
|=
HA_NULL_PART_KEY
;
}
}
if
(
MTYP_TYPENR
(
sql_field
->
unireg_check
)
==
Field
::
NEXT_NUMBER
)
if
(
MTYP_TYPENR
(
sql_field
->
unireg_check
)
==
Field
::
NEXT_NUMBER
)
...
...
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