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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
b9a9b82f
Commit
b9a9b82f
authored
Mar 02, 2015
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Make json_udf test work on Windows
modified: storage/connect/mysql-test/connect/t/json_udf.inc
parent
5f4909b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
24 deletions
+33
-24
storage/connect/mysql-test/connect/t/json_udf.inc
storage/connect/mysql-test/connect/t/json_udf.inc
+33
-24
No files found.
storage/connect/mysql-test/connect/t/json_udf.inc
View file @
b9a9b82f
--
disable_query_log
if
(
$WINDOWS
)
{
--
eval
CREATE
FUNCTION
Json_Array
RETURNS
STRING
SONAME
'ha_connect.dll'
;
--
eval
CREATE
FUNCTION
Json_Array_Add
RETURNS
STRING
SONAME
'ha_connect.dll'
;
--
eval
CREATE
FUNCTION
Json_Object
RETURNS
STRING
SONAME
'ha_connect.dll'
;
--
eval
CREATE
FUNCTION
Json_Object_Nonull
RETURNS
STRING
SONAME
'ha_connect.dll'
;
--
eval
CREATE
FUNCTION
Json_Value
returns
STRING
SONAME
'ha_connect.dll'
;
--
eval
CREATE
AGGREGATE
FUNCTION
Json_Array_Grp
RETURNS
STRING
SONAME
'ha_connect.dll'
;
--
eval
CREATE
AGGREGATE
FUNCTION
Json_Object_Grp
RETURNS
STRING
SONAME
'ha_connect.dll'
;
}
if
(
!
$WINDOWS
)
{
--
eval
CREATE
FUNCTION
Json_Array
RETURNS
STRING
SONAME
'ha_connect.so'
;
--
eval
CREATE
FUNCTION
Json_Array_Add
RETURNS
STRING
SONAME
'ha_connect.so'
;
--
eval
CREATE
FUNCTION
Json_Object
RETURNS
STRING
SONAME
'ha_connect.so'
;
--
eval
CREATE
FUNCTION
Json_Object_Nonull
RETURNS
STRING
SONAME
'ha_connect.so'
;
--
eval
CREATE
FUNCTION
Json_Value
returns
STRING
SONAME
'ha_connect.so'
;
--
eval
CREATE
AGGREGATE
FUNCTION
Json_Array_Grp
RETURNS
STRING
SONAME
'ha_connect.so'
;
--
eval
CREATE
AGGREGATE
FUNCTION
Json_Object_Grp
RETURNS
STRING
SONAME
'ha_connect.so'
;
}
--
enable_query_log
--
disable_query_log
#
# Check if server has support for loading plugins
#
if
(
`SELECT @@have_dynamic_loading != 'YES'`
)
{
--
skip
UDF
requires
dynamic
loading
}
let
$is_win
=
`select convert(@@version_compile_os using latin1) IN ("Win32","Win64","Windows")`
;
if
(
$is_win
)
{
--
eval
CREATE
FUNCTION
Json_Array
RETURNS
STRING
SONAME
'ha_connect.dll'
;
--
eval
CREATE
FUNCTION
Json_Array_Add
RETURNS
STRING
SONAME
'ha_connect.dll'
;
--
eval
CREATE
FUNCTION
Json_Object
RETURNS
STRING
SONAME
'ha_connect.dll'
;
--
eval
CREATE
FUNCTION
Json_Object_Nonull
RETURNS
STRING
SONAME
'ha_connect.dll'
;
--
eval
CREATE
FUNCTION
Json_Value
returns
STRING
SONAME
'ha_connect.dll'
;
--
eval
CREATE
AGGREGATE
FUNCTION
Json_Array_Grp
RETURNS
STRING
SONAME
'ha_connect.dll'
;
--
eval
CREATE
AGGREGATE
FUNCTION
Json_Object_Grp
RETURNS
STRING
SONAME
'ha_connect.dll'
;
}
if
(
!
$is_win
)
{
--
eval
CREATE
FUNCTION
Json_Array
RETURNS
STRING
SONAME
'ha_connect.so'
;
--
eval
CREATE
FUNCTION
Json_Array_Add
RETURNS
STRING
SONAME
'ha_connect.so'
;
--
eval
CREATE
FUNCTION
Json_Object
RETURNS
STRING
SONAME
'ha_connect.so'
;
--
eval
CREATE
FUNCTION
Json_Object_Nonull
RETURNS
STRING
SONAME
'ha_connect.so'
;
--
eval
CREATE
FUNCTION
Json_Value
returns
STRING
SONAME
'ha_connect.so'
;
--
eval
CREATE
AGGREGATE
FUNCTION
Json_Array_Grp
RETURNS
STRING
SONAME
'ha_connect.so'
;
--
eval
CREATE
AGGREGATE
FUNCTION
Json_Object_Grp
RETURNS
STRING
SONAME
'ha_connect.so'
;
}
--
enable_query_log
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