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
fdb25346
Commit
fdb25346
authored
Feb 11, 2002
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
d3cfc86a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
8 deletions
+38
-8
Docs/manual.texi
Docs/manual.texi
+28
-2
myisam/myisamchk.c
myisam/myisamchk.c
+4
-0
sql/mysqld.cc
sql/mysqld.cc
+1
-1
sql/sql_base.cc
sql/sql_base.cc
+5
-5
No files found.
Docs/manual.texi
View file @
fdb25346
...
@@ -29836,6 +29836,32 @@ mysql> select 1 IS NOT NULL, 0 IS NOT NULL, NULL IS NOT NULL;
...
@@ -29836,6 +29836,32 @@ mysql> select 1 IS NOT NULL, 0 IS NOT NULL, NULL IS NOT NULL;
-> 1 1 0
-> 1 1 0
@end example
@end example
@cindex ODBC compatibility
@cindex compatibility, with ODBC
To be able to work good with other programs, MySQL supports the following
extra features when using @code{IS NULL}:
@itemize @bullet
@item
You can find the last inserted row with:
@example
SELECT * FROM tbl_name WHERE auto_col IS NULL
@end example
This can be disabled by setting @code{SQL_AUTO_IS_NULL=0}. @xref{SET OPTION}.
@item
For @code{NOT NULL} @code{DATE} and @code{DATETIME} columns you can find
the special date @code{0000-00-00} by using:
@example
SELECT * FROM tbl_name WHERE date_column IS NULL
@end example
This is needed to get some ODBC applications to work (as ODBC doesn't
support a @code{0000-00-00} date)
@end itemize
@findex BETWEEN ... AND
@findex BETWEEN ... AND
@item expr BETWEEN min AND max
@item expr BETWEEN min AND max
If @code{expr} is greater than or equal to @code{min} and @code{expr} is
If @code{expr} is greater than or equal to @code{min} and @code{expr} is
...
@@ -48435,8 +48461,8 @@ Fixed bug in multi table delete.
...
@@ -48435,8 +48461,8 @@ Fixed bug in multi table delete.
@item
@item
Fixed bug in @code{SELECT CONCAT(argument-list) ... GROUP BY 1}.
Fixed bug in @code{SELECT CONCAT(argument-list) ... GROUP BY 1}.
@item
@item
@code{
SELECT ... INSER
T} did a full rollback in case of an error. Fixed
@code{
INSERT ... SELEC
T} did a full rollback in case of an error. Fixed
so that we only roll back the last statement.
so that we only roll back the last statement
in the current transaction
.
@item
@item
Fixed bug with empty expression for boolean fulltext search.
Fixed bug with empty expression for boolean fulltext search.
@item
@item
myisam/myisamchk.c
View file @
fdb25346
...
@@ -575,9 +575,13 @@ get_one_option(int optid,
...
@@ -575,9 +575,13 @@ get_one_option(int optid,
break
;
break
;
case
'#'
:
case
'#'
:
if
(
argument
&&
*
argument
==
'0'
)
if
(
argument
&&
*
argument
==
'0'
)
{
DBUG_POP
();
DBUG_POP
();
}
else
else
{
DBUG_PUSH
(
argument
?
argument
:
"d:t:o,/tmp/myisamchk.trace"
);
DBUG_PUSH
(
argument
?
argument
:
"d:t:o,/tmp/myisamchk.trace"
);
}
break
;
break
;
case
'V'
:
case
'V'
:
print_version
();
print_version
();
...
...
sql/mysqld.cc
View file @
fdb25346
...
@@ -3068,7 +3068,7 @@ struct show_var_st init_vars[]= {
...
@@ -3068,7 +3068,7 @@ struct show_var_st init_vars[]= {
{
"log_update"
,
(
char
*
)
&
opt_update_log
,
SHOW_BOOL
},
{
"log_update"
,
(
char
*
)
&
opt_update_log
,
SHOW_BOOL
},
{
"log_bin"
,
(
char
*
)
&
opt_bin_log
,
SHOW_BOOL
},
{
"log_bin"
,
(
char
*
)
&
opt_bin_log
,
SHOW_BOOL
},
{
"log_slave_updates"
,
(
char
*
)
&
opt_log_slave_updates
,
SHOW_BOOL
},
{
"log_slave_updates"
,
(
char
*
)
&
opt_log_slave_updates
,
SHOW_BOOL
},
{
"log_
long
_queries"
,
(
char
*
)
&
opt_slow_log
,
SHOW_BOOL
},
{
"log_
slow
_queries"
,
(
char
*
)
&
opt_slow_log
,
SHOW_BOOL
},
{
"long_query_time"
,
(
char
*
)
&
long_query_time
,
SHOW_LONG
},
{
"long_query_time"
,
(
char
*
)
&
long_query_time
,
SHOW_LONG
},
{
"low_priority_updates"
,
(
char
*
)
&
low_priority_updates
,
SHOW_BOOL
},
{
"low_priority_updates"
,
(
char
*
)
&
low_priority_updates
,
SHOW_BOOL
},
{
"lower_case_table_names"
,
(
char
*
)
&
lower_case_table_names
,
SHOW_LONG
},
{
"lower_case_table_names"
,
(
char
*
)
&
lower_case_table_names
,
SHOW_LONG
},
...
...
sql/sql_base.cc
View file @
fdb25346
...
@@ -708,11 +708,11 @@ TABLE *reopen_name_locked_table(THD* thd, TABLE_LIST* table_list)
...
@@ -708,11 +708,11 @@ TABLE *reopen_name_locked_table(THD* thd, TABLE_LIST* table_list)
if
(
open_unireg_entry
(
thd
,
table
,
db
,
table_name
,
table_name
,
1
)
||
if
(
open_unireg_entry
(
thd
,
table
,
db
,
table_name
,
table_name
,
1
)
||
!
(
table
->
table_cache_key
=
memdup_root
(
&
table
->
mem_root
,(
char
*
)
key
,
!
(
table
->
table_cache_key
=
memdup_root
(
&
table
->
mem_root
,(
char
*
)
key
,
key_length
)))
key_length
)))
{
{
closefrm
(
table
);
closefrm
(
table
);
pthread_mutex_unlock
(
&
LOCK_open
);
pthread_mutex_unlock
(
&
LOCK_open
);
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
table
->
key_length
=
key_length
;
table
->
key_length
=
key_length
;
table
->
version
=
0
;
table
->
version
=
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