Merge pull request #62932 from rschu1ze/unflake-02813_func_now_and_alias

Unflake 02813_func_now_and_alias
This commit is contained in:
Robert Schulze 2024-04-25 09:26:15 +00:00 committed by GitHub
commit 6eb33bd9ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View File

@ -93,7 +93,7 @@ enable_language(ASM)
if(COMPILER_CLANG)
add_definitions(-Wno-unused-command-line-argument)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fuse-ld=lld")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fuse-ld=lld") # only relevant for -DENABLE_OPENSSL_DYNAMIC=1
endif()
if(ARCH_AMD64)

View File

@ -1,3 +1,6 @@
SELECT now() = current_timestamp();
SELECT now() = CURRENT_TIMESTAMP();
SELECT now() = current_TIMESTAMP();
-- "Tests" current_timestamp() which is an alias of now().
-- Since the function is non-deterministic, only check that no bad things happen (don't check the returned value).
SELECT count() FROM (SELECT current_timestamp());
SELECT count() FROM (SELECT CURRENT_TIMESTAMP());
SELECT count() FROM (SELECT current_TIMESTAMP());