mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[11160] Lost from_unixtime(integer) function in prev postgre_compatibility_addon.sql
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
04c21c95d3
commit
30cb26d86a
2 changed files with 5 additions and 1 deletions
|
|
@ -20,3 +20,7 @@ CREATE OR REPLACE FUNCTION unix_timestamp(timestamp) RETURNS bigint AS '
|
||||||
CREATE OR REPLACE FUNCTION unix_timestamp(timestamp WITH time zone) RETURNS bigint AS '
|
CREATE OR REPLACE FUNCTION unix_timestamp(timestamp WITH time zone) RETURNS bigint AS '
|
||||||
SELECT EXTRACT(EPOCH FROM $1)::bigint AS result;
|
SELECT EXTRACT(EPOCH FROM $1)::bigint AS result;
|
||||||
' LANGUAGE 'SQL';
|
' LANGUAGE 'SQL';
|
||||||
|
|
||||||
|
CREATE OR REPLACE FUNCTION from_unixtime(integer) RETURNS timestamp AS '
|
||||||
|
SELECT to_timestamp($1)::timestamp AS result
|
||||||
|
' LANGUAGE 'SQL';
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11159"
|
#define REVISION_NR "11160"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue