Skip to content

Commit 4254750

Browse files
qinshiyurasifr
authored andcommitted
compatible oracle date type
1 parent 4869ef5 commit 4254750

7 files changed

Lines changed: 3452 additions & 61 deletions

File tree

contrib/orafce/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MODULE_big = orafce
2-
OBJS= parse_keyword.o convert.o file.o datefce.o magic.o others.o plvstr.o plvdate.o shmmc.o plvsubst.o utility.o plvlex.o alert.o pipe.o sqlparse.o putline.o assert.o plunit.o random.o aggregate.o orafce.o varchar2.o nvarchar2.o charpad.o charlen.o replace_empty_string.o datefuncs.o
2+
OBJS= parse_keyword.o convert.o file.o datefce.o magic.o others.o plvstr.o plvdate.o shmmc.o plvsubst.o utility.o plvlex.o alert.o pipe.o sqlparse.o putline.o assert.o plunit.o random.o aggregate.o orafce.o varchar2.o nvarchar2.o charpad.o charlen.o replace_empty_string.o datefuncs.o ora_date.o
33

44
EXTENSION = orafce
55

contrib/orafce/builtins.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,14 @@ extern PGDLLEXPORT Datum ora_days_between(PG_FUNCTION_ARGS);
309309
extern PGDLLEXPORT Datum ora_days_between_tmtz(PG_FUNCTION_ARGS);
310310
extern PGDLLEXPORT Datum new_time(PG_FUNCTION_ARGS);
311311

312-
312+
/* from date.c, oracle date type */
313+
extern PGDLLEXPORT Datum ora_date_in(PG_FUNCTION_ARGS);
314+
extern PGDLLEXPORT Datum ora_date_out(PG_FUNCTION_ARGS);
315+
extern PGDLLEXPORT Datum ora_date_recv(PG_FUNCTION_ARGS);
316+
extern PGDLLEXPORT Datum ora_date_send(PG_FUNCTION_ARGS);
317+
extern PGDLLEXPORT Datum timestamp_pl_float4(PG_FUNCTION_ARGS);
318+
extern PGDLLEXPORT Datum timestamp_pl_float8(PG_FUNCTION_ARGS);
319+
extern PGDLLEXPORT Datum timestamp_mi_float4(PG_FUNCTION_ARGS);
320+
extern PGDLLEXPORT Datum timestamp_mi_float8(PG_FUNCTION_ARGS);
313321

314322
#endif

0 commit comments

Comments
 (0)