Ticket #104: esc.patch

File esc.patch, 0 bytes (added by robe....@…, 3 years ago)

 http://postgis.googlecode.com/issues/attachment?aid=-5423139989644836315&name=esc.patch

  • shp2pgsql-core.c

     
    407407                        else 
    408408                        { 
    409409                                escval = protect_quotes_string(val); 
    410                                 stringbuffer_aprintf(sb_row, "'%s'", escval); 
     410                                stringbuffer_aprintf(sb_row, "E'%s'", escval); 
    411411                                //printf(","); 
    412412                        } 
    413413                        if ( val != escval ) free(escval); 
  • shp2pgsql.c

     
    359359                                //printf("\t"); 
    360360                        } else { 
    361361                                escval = protect_quotes_string(val); 
    362                                 printf("'%s'", escval); 
     362                                printf("E'%s'", escval); 
    363363                                //printf(","); 
    364364                        } 
    365365                        if ( val != escval ) free(escval);