Changeset: a4c10fefa472 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a4c10fefa472
Modified Files:
        monetdb5/modules/atoms/pg_jsonpath/postgres_defines.h
        monetdb5/modules/atoms/pg_jsonpath/postgres_defines_internal.h
Branch: json-extend
Log Message:

implement Numeric with lng  for now


diffs (46 lines):

diff --git a/monetdb5/modules/atoms/pg_jsonpath/postgres_defines.h 
b/monetdb5/modules/atoms/pg_jsonpath/postgres_defines.h
--- a/monetdb5/modules/atoms/pg_jsonpath/postgres_defines.h
+++ b/monetdb5/modules/atoms/pg_jsonpath/postgres_defines.h
@@ -48,6 +48,7 @@ typedef unsigned int Oid;
 
 struct Node;
 
+#if 0
 // numeric.c
 typedef int16 NumericDigit;
 struct NumericShort
@@ -77,5 +78,7 @@ struct NumericData
 };
 struct NumericData;
 typedef struct NumericData *Numeric;
+#endif
 
+typedef lng Numeric;
 #endif
diff --git a/monetdb5/modules/atoms/pg_jsonpath/postgres_defines_internal.h 
b/monetdb5/modules/atoms/pg_jsonpath/postgres_defines_internal.h
--- a/monetdb5/modules/atoms/pg_jsonpath/postgres_defines_internal.h
+++ b/monetdb5/modules/atoms/pg_jsonpath/postgres_defines_internal.h
@@ -69,13 +69,16 @@ pg_strtoint32(const char *s)
 
 #define CHECK_FOR_INTERRUPTS() /* EMPTY */
 
-#define DatumGetNumeric(X) (NULL) // TODO
-#define DirectFunctionCall3    /* TODO */
-#define CStringGetDatum        /* TODO */
-#define ObjectIdGetDatum // TODO
-#define Int32GetDatum // TODO
-#define DirectFunctionCall1 // TODO
-#define NumericGetDatum // TODO
+#define DatumGetNumeric(X) (X)
+#define numeric_in atoi
+#define DirectFunctionCall3(func, A, B, C)     func(A)
+#define CStringGetDatum(X)     (X)
+#define ObjectIdGetDatum(X)    (X)
+#define Int32GetDatum(X)       (X)
+#define DirectFunctionCall1(func, A)   (func A)
+#define NumericGetDatum(X) (X)
+#define numeric_uminus -
+
 
 #define for_each_from(cell, list, N) \
 cell = list->h; \
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to