aboutsummaryrefslogtreecommitdiff
path: root/res/sql/functions/orcl_current_datetime.sql
diff options
context:
space:
mode:
Diffstat (limited to 'res/sql/functions/orcl_current_datetime.sql')
-rw-r--r--res/sql/functions/orcl_current_datetime.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/res/sql/functions/orcl_current_datetime.sql b/res/sql/functions/orcl_current_datetime.sql
new file mode 100644
index 0000000..bf454d8
--- /dev/null
+++ b/res/sql/functions/orcl_current_datetime.sql
@@ -0,0 +1,10 @@
1CREATE OR REPLACE FUNCTION current_datetime
2 RETURN TIMESTAMP WITH TIME ZONE
3AS
4 BEGIN
5
6--RETURN TO_TIMESTAMP_TZ('2014-01-01', 'YYYY-MM-DD');
7 RETURN CURRENT_TIMESTAMP;
8
9 END;
10/