<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.5770.91">
<TITLE>shp2pgsql</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">I was loading a shapefile with a large number of nulls by piping shp2pgsql into psql and noticed that the loader is treating NULLs as a string when the dump_format option is not selected.  Removing the apostrophes from the line generating the nulls fixed the problem..i.e. changing (in the Insert_attributes function):</FONT></P>

<P><FONT SIZE=2 FACE="Arial"> printf(",'NULL'");</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">to </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"> printf(",NULL");</FONT>
</P>
<BR>
<BR>
<BR>

</BODY>
</HTML>