8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 04:43:03 +01:00

One more attempt to fix DOW function on windows

This commit is contained in:
AlexPeshkoff 2019-01-28 13:41:49 +03:00
parent 5b8e562c80
commit e83d59492f
2 changed files with 4 additions and 4 deletions

View File

@ -14,13 +14,13 @@ create function frac (
create function dow ( create function dow (
val timestamp val timestamp
) returns varchar(53) character set utf8 ) returns varchar(53) character set none
external name 'udf_compat!UC_dow' external name 'udf_compat!UC_dow'
engine udr; engine udr;
create function sdow ( create function sdow (
val timestamp val timestamp
) returns varchar(13) character set utf8 ) returns varchar(13) character set none
external name 'udf_compat!UC_sdow' external name 'udf_compat!UC_sdow'
engine udr; engine udr;

View File

@ -56,14 +56,14 @@ if (exists(select * from RDB$FUNCTIONS where RDB$MODULE_NAME is not null and RDB
if (exists(select * from RDB$FUNCTIONS where RDB$MODULE_NAME is not null and RDB$FUNCTION_NAME = 'DOW')) then execute statement if (exists(select * from RDB$FUNCTIONS where RDB$MODULE_NAME is not null and RDB$FUNCTION_NAME = 'DOW')) then execute statement
'alter function dow ( 'alter function dow (
val timestamp val timestamp
) returns varchar(53) character set utf8 ) returns varchar(53) character set none
external name ''udf_compat!UC_dow'' external name ''udf_compat!UC_dow''
engine udr'; engine udr';
if (exists(select * from RDB$FUNCTIONS where RDB$MODULE_NAME is not null and RDB$FUNCTION_NAME = 'SDOW')) then execute statement if (exists(select * from RDB$FUNCTIONS where RDB$MODULE_NAME is not null and RDB$FUNCTION_NAME = 'SDOW')) then execute statement
'alter function sdow ( 'alter function sdow (
val timestamp val timestamp
) returns varchar(13) character set utf8 ) returns varchar(13) character set none
external name ''udf_compat!UC_sdow'' external name ''udf_compat!UC_sdow''
engine udr'; engine udr';