2010/5/23 郭家成 <span dir="ltr"><<a href="mailto:iron1103@gmail.com">iron1103@gmail.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div>Hi Mike,</div>
<div>Thanks for your reply, but it still doesn't work.</div>
<div>The key point possibly lies in <strong>Oid paramtypes[1]={0}</strong>, </div>
<div>Where can I find the ParamType of Geometry or Bytea?</div></blockquote><div><br></div><div>They are defined in the system tables:</div><div><br></div><div>select oid, * from pg_type where typname='geometry' or typname='bytea';</div>

<div><br></div><div>I'm not sure if the oid for geometry is constant with different installations (mine is 16892). Bytea is always 17, since it is hard-coded in src/include/catalog/pg_type.h</div><div><br></div><div>
-Mike</div>
</div>