Changeset 2463

Show
Ignore:
Timestamp:
10/14/03 11:06:59 (5 years ago)
Author:
dan
Message:

Added postresql_NOTICE_HANDLER() sending output via msDebug() and only
when layer->debug is set (bug 418)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/branch-4-0/mapserver/mappostgis.c

    r2298 r2463  
    122122 
    123123 
    124 //void postresql_NOTICE_HANDLER(void *arg, const char *message); 
     124void postresql_NOTICE_HANDLER(void *arg, const char *message) 
     125
     126    layerObj *lp; 
     127    lp = (layerObj*)arg; 
     128 
     129    if (lp->debug) 
     130        msDebug("%s", message); 
     131
    125132 
    126133 
     
    212219    } 
    213220 
    214 //     PQsetNoticeProcessor(layerinfo->conn, postresql_NOTICE_HANDLER ,(void *) layerinfo); 
     221       PQsetNoticeProcessor(layerinfo->conn, postresql_NOTICE_HANDLER ,(void *) layer); 
    215222 
    216223