Ignore:
Timestamp:
12/26/13 15:37:51 (8 years ago)
Author:
sjamaan
Message:

postgresql: Improve error reporting by adding more fields and have different subconditions for different types of errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/postgresql/trunk/postgresql.setup

    r27166 r30215  
    2727)
    2828
     29(define PG_DIAG_INTERNAL_QUERY+POSITION-checker #<<EOF
     30  #include <libpq-fe.h>
     31  int main(void)
     32  {
     33     int foo = PG_DIAG_INTERNAL_QUERY;
     34     int bar = PG_DIAG_INTERNAL_POSITION;
     35     return foo + bar;
     36  }
     37EOF
     38)
     39
    2940(define feature-checks
    3041  `((has-PQescapeIdentifier . ,PQescapeIdentifier-presence-checker)
    31     (has-PQconnectdbParams . ,PQconnectdbParams-presence-checker)))
     42    (has-PQconnectdbParams . ,PQconnectdbParams-presence-checker)
     43    (has-PG_DIAG_INTERNAL_QUERY+POSITION . ,PG_DIAG_INTERNAL_QUERY+POSITION-checker)))
    3244
    3345(define-syntax try-compile-pgsql-prog
Note: See TracChangeset for help on using the changeset viewer.