fix whitespace
authorAndrew Dunstan <[email protected]>
Tue, 25 Feb 2014 19:48:15 +0000 (14:48 -0500)
committerAndrew Dunstan <[email protected]>
Tue, 25 Feb 2014 19:48:15 +0000 (14:48 -0500)
contrib/hstore/hstore--1.3.sql
contrib/hstore/hstore_io.c
src/backend/utils/adt/jsonb.c
src/include/utils/jsonb.h

index 61ad4de33f779182aa1f5f43a12f96c6878ca6ea..12990af2ab4451dd235ace1ae35fba3d6bd9d093 100644 (file)
@@ -462,10 +462,10 @@ CREATE CAST (hstore AS json)
   WITH FUNCTION hstore_to_json(hstore);
 
 CREATE CAST (hstore AS jsonb)
-  WITHOUT FUNCTION AS IMPLICIT; 
+  WITHOUT FUNCTION AS IMPLICIT;
 
 CREATE CAST (jsonb AS hstore)
-  WITHOUT FUNCTION AS IMPLICIT; 
+  WITHOUT FUNCTION AS IMPLICIT;
 
 CREATE FUNCTION hstore_to_json_loose(hstore)
 RETURNS json
index b4d9bf073260b12255c386bc03aa30c40c32f0f7..d4f23c5062c1d37e7d81149b9536240ec81a3b7e 100644 (file)
@@ -1735,12 +1735,12 @@ array_to_hstore(PG_FUNCTION_ARGS)
        PG_RETURN_POINTER(hstoreDump(NULL));
 
    /* see discussion in arrayToHStoreSortedArray() */
-   if (ArrayGetNItems(ARR_NDIM(array), ARR_DIMS(array)) > 
+   if (ArrayGetNItems(ARR_NDIM(array), ARR_DIMS(array)) >
        MaxAllocSize / sizeof(HStorePair))
        ereport(ERROR,
                (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
              errmsg("number of elements (%d) exceeds the maximum allowed (%d)",
-                    ArrayGetNItems(ARR_NDIM(array), ARR_DIMS(array)), 
+                    ArrayGetNItems(ARR_NDIM(array), ARR_DIMS(array)),
                     (int) (MaxAllocSize / sizeof(HStorePair)))));
 
    switch(ARR_ELEMTYPE(array))
index e230b16d6cefc9c8744af11ce5127221fe00f7c3..04bca976ecea0c0dd8b9e07abe0e96bddfe695c9 100644 (file)
@@ -201,8 +201,8 @@ jsonb_recv(PG_FUNCTION_ARGS)
    {
        elog(ERROR,"Unsupported jsonb version number %d",version);
    }
-       
-   return deserialize_json_text(result);       
+
+   return deserialize_json_text(result);
 }
 
 
@@ -397,12 +397,12 @@ jsonb_send(PG_FUNCTION_ARGS)
    Jsonb      *jb = PG_GETARG_JSONB(0);
    StringInfoData buf;
    char       *out;
-   int         version = 1; 
+   int         version = 1;
 
    out = JsonbToCString(NULL, (JB_ISEMPTY(jb)) ? NULL : VARDATA(jb), VARSIZE(jb));
 
    pq_begintypsend(&buf);
-   pq_sendint(&buf, version, 1); 
+   pq_sendint(&buf, version, 1);
    pq_sendtext(&buf, out, strlen(out));
    PG_RETURN_BYTEA_P(pq_endtypsend(&buf));
 }
index 1983cfed7c8072257b23d232466006f85bf827da..e859dbd1f12be12bc5890a4f4bb5ebeb19b01fc8 100644 (file)
@@ -40,8 +40,8 @@ typedef struct
 #define JENTRY_ISFALSE     JENTRY_ISBOOL
 #define JENTRY_ISTRUE      (0x10000000 | 0x20000000 | 0x40000000)
 
-/* 
- * JENTRY_ISOBJECT, JENTRY_ISARRAY and JENTRY_ISSCALAR are only used in 
+/*
+ * JENTRY_ISOBJECT, JENTRY_ISARRAY and JENTRY_ISSCALAR are only used in
  * hstore send/recv. They are defined here because so are all the other
  * JENTRY_IS* constants.
  */