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
69204915
Commit
69204915
authored
May 02, 2012
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
af084bcd
26fcc550
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
5 deletions
+33
-5
mysql-test/r/type_date.result
mysql-test/r/type_date.result
+6
-0
mysql-test/t/type_date.test
mysql-test/t/type_date.test
+7
-0
sql/sql_acl.cc
sql/sql_acl.cc
+5
-3
win/packaging/CMakeLists.txt
win/packaging/CMakeLists.txt
+1
-0
win/packaging/ca/CMakeLists.txt
win/packaging/ca/CMakeLists.txt
+14
-2
No files found.
mysql-test/r/type_date.result
View file @
69204915
...
...
@@ -21,6 +21,12 @@ name cdate note
name1 1998-01-01 note01
name2 1998-01-01 note01
drop table t1,t2;
CREATE TABLE t1(a INT);
INSERT INTO t1 VALUES(1);
SELECT * FROM t1 WHERE LAST_DAY('0000-00-00 00:00:00') IS NULL;
a
1
DROP TABLE t1;
CREATE TABLE t1 ( datum DATE );
INSERT INTO t1 VALUES ( "2000-1-1" );
INSERT INTO t1 VALUES ( "2000-1-2" );
...
...
mysql-test/t/type_date.test
View file @
69204915
...
...
@@ -26,6 +26,13 @@ INSERT INTO t2 VALUES ('1998-01-02','note02');
select
name
,
t1
.
cdate
,
note
from
t1
,
t2
where
t1
.
cdate
=
t2
.
cdate
and
t1
.
cdate
=
'1998-01-01'
;
drop
table
t1
,
t2
;
# MariaDB lp:993103. WHERE LAST_DAY(zero_date) IS NULL does not evaluate to TRUE.
CREATE
TABLE
t1
(
a
INT
);
INSERT
INTO
t1
VALUES
(
1
);
SELECT
*
FROM
t1
WHERE
LAST_DAY
(
'0000-00-00 00:00:00'
)
IS
NULL
;
DROP
TABLE
t1
;
#
# Date and BETWEEN
#
...
...
sql/sql_acl.cc
View file @
69204915
...
...
@@ -7655,14 +7655,16 @@ static ulong parse_client_handshake_packet(MPVIO_EXT *mpvio,
return
packet_error
;
}
if
(
thd
->
client_capabilities
&
CLIENT_PLUGIN_AUTH
)
if
((
thd
->
client_capabilities
&
CLIENT_PLUGIN_AUTH
)
&&
(
client_plugin
<
(
char
*
)
net
->
read_pos
+
pkt_len
))
{
if
(
client_plugin
>=
(
char
*
)
net
->
read_pos
+
pkt_len
)
return
packet_error
;
client_plugin
=
fix_plugin_ptr
(
client_plugin
);
}
else
{
/* Some clients lie. Sad, but true */
thd
->
client_capabilities
&=
~
CLIENT_PLUGIN_AUTH
;
if
(
thd
->
client_capabilities
&
CLIENT_SECURE_CONNECTION
)
client_plugin
=
native_password_plugin_name
.
str
;
else
...
...
win/packaging/CMakeLists.txt
View file @
69204915
...
...
@@ -24,6 +24,7 @@ FIND_PATH(WIX_DIR heat.exe
"$ENV{ProgramFiles}/Windows Installer XML v3/bin"
"$ENV{ProgramFiles}/Windows Installer XML v3.5/bin"
"$ENV{ProgramFiles}/Windows Installer XML v3.6/bin"
"$ENV{WIX}/bin"
)
SET
(
CPACK_WIX_PACKAGE_BASE_NAME
"MariaDB"
)
...
...
win/packaging/ca/CMakeLists.txt
View file @
69204915
...
...
@@ -22,28 +22,40 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/sql)
IF
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
SET
(
WIX_ARCH_SUFFIX
"_x64"
)
SET
(
WIX36_ARCH_SUFFIX
"x64"
)
ELSE
()
SET
(
WIX_ARCH_SUFFIX
)
SET
(
WIX36_ARCH_SUFFIX
"x86"
)
ENDIF
()
IF
(
MSVC_VERSION EQUAL 1400
)
SET
(
WIX35_MSVC_SUFFIX
"_2005"
)
ELSEIF
(
MSVC_VERSION EQUAL 1500
)
SET
(
WIX35_MSVC_SUFFIX
"_2008"
)
SET
(
WIX36_MSVC_SUFFIX
"VS2008"
)
ELSEIF
(
MSVC_VERSION EQUAL 1600
)
SET
(
WIX35_MSVC_SUFFIX
"_2010"
)
SET
(
WIX36_MSVC_SUFFIX
"VS2010"
)
ELSE
()
# When next VS is out, add the correct version here
MESSAGE
(
FATAL_ERROR
"Unknown VS version"
)
ENDIF
()
INCLUDE_DIRECTORIES
(
${
WIX_DIR
}
/../SDK/
${
WIX36_MSVC_SUFFIX
}
/inc
)
FIND_LIBRARY
(
WIX_WCAUTIL_LIBRARY
NAMES wcautil
${
WIX_ARCH_SUFFIX
}
wcautil
${
WIX35_MSVC_SUFFIX
}${
WIX_ARCH_SUFFIX
}
HINTS
${
WIX_DIR
}
/../SDK/lib
)
wcautil
PATHS
${
WIX_DIR
}
/../SDK/lib
${
WIX_DIR
}
/../SDK/
${
WIX36_MSVC_SUFFIX
}
/lib/
${
WIX36_ARCH_SUFFIX
}
)
FIND_LIBRARY
(
WIX_DUTIL_LIBRARY
NAMES dutil
${
WIX_ARCH_SUFFIX
}
dutil
${
WIX35_MSVC_SUFFIX
}${
WIX_ARCH_SUFFIX
}
PATHS
${
WIX_DIR
}
/../SDK/lib
)
dutil
PATHS
${
WIX_DIR
}
/../SDK/lib
${
WIX_DIR
}
/../SDK/
${
WIX36_MSVC_SUFFIX
}
/lib/
${
WIX36_ARCH_SUFFIX
}
)
ADD_VERSION_INFO
(
wixca SHARED WIXCA_SOURCES
)
ADD_LIBRARY
(
wixca SHARED EXCLUDE_FROM_ALL
${
WIXCA_SOURCES
}
)
...
...
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