mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +01:00
- Make json_udf test work on Windows
modified: storage/connect/mysql-test/connect/t/json_udf.inc
This commit is contained in:
parent
5f4909b31d
commit
b9a9b82f9e
1 changed files with 33 additions and 24 deletions
|
@ -1,24 +1,33 @@
|
||||||
--disable_query_log
|
--disable_query_log
|
||||||
if ($WINDOWS)
|
#
|
||||||
{
|
# Check if server has support for loading plugins
|
||||||
--eval CREATE FUNCTION Json_Array RETURNS STRING SONAME 'ha_connect.dll';
|
#
|
||||||
--eval CREATE FUNCTION Json_Array_Add RETURNS STRING SONAME 'ha_connect.dll';
|
if (`SELECT @@have_dynamic_loading != 'YES'`) {
|
||||||
--eval CREATE FUNCTION Json_Object RETURNS STRING SONAME 'ha_connect.dll';
|
--skip UDF requires dynamic loading
|
||||||
--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';
|
let $is_win = `select convert(@@version_compile_os using latin1) IN ("Win32","Win64","Windows")`;
|
||||||
--eval CREATE AGGREGATE FUNCTION Json_Object_Grp RETURNS STRING SONAME 'ha_connect.dll';
|
|
||||||
}
|
if ($is_win)
|
||||||
|
{
|
||||||
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_Array RETURNS STRING SONAME 'ha_connect.so';
|
--eval CREATE FUNCTION Json_Object RETURNS STRING SONAME 'ha_connect.dll';
|
||||||
--eval CREATE FUNCTION Json_Array_Add RETURNS STRING SONAME 'ha_connect.so';
|
--eval CREATE FUNCTION Json_Object_Nonull RETURNS STRING SONAME 'ha_connect.dll';
|
||||||
--eval CREATE FUNCTION Json_Object RETURNS STRING SONAME 'ha_connect.so';
|
--eval CREATE FUNCTION Json_Value returns STRING SONAME 'ha_connect.dll';
|
||||||
--eval CREATE FUNCTION Json_Object_Nonull RETURNS STRING SONAME 'ha_connect.so';
|
--eval CREATE AGGREGATE FUNCTION Json_Array_Grp RETURNS STRING SONAME 'ha_connect.dll';
|
||||||
--eval CREATE FUNCTION Json_Value returns STRING SONAME 'ha_connect.so';
|
--eval CREATE AGGREGATE FUNCTION Json_Object_Grp RETURNS STRING SONAME 'ha_connect.dll';
|
||||||
--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';
|
|
||||||
}
|
if (!$is_win)
|
||||||
--enable_query_log
|
{
|
||||||
|
--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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue