<!-- Presentation generated by Internet Assistant for Microsoft PowerPoint 97 -->
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft Internet Assistant for Microsoft PowerPoint 97">
<TITLE>Some TYPE gotchas</TITLE>
</HEAD>
<BODY >
<CENTER>
<TABLE WIDTH=100%>
<TR> <TD WIDTH=100% ALIGN=CENTER>
<A HREF="sld001.htm">First</A>
<A HREF="sld039.htm">Previous</A>
<A HREF="sld041.htm">Next</A>
<A HREF="sld102.htm">Last</A>
<A HREF="index.htm">Index</A>
<A HREF="dbi.perl.org">Home</A>
<A HREF="tsld040.htm">Text</A>
</TD> </TR>
<TR> <TD WIDTH=100% ALIGN=CENTER>
<IMG SRC="img040.gif" usemap="#Objmap" WIDTH=800 HEIGHT=600 BORDER=0>
</TD> </TR>
</TABLE>
<P>Slide 40 of 102</P>
</CENTER>
<!-- <UL>
<H2>Some TYPE gotchas</H2>
</UL></P>
<P><UL>
<LI><H2>Bind TYPE attribute is just a hint
</H2>
<UL>
<LI>and like all hints in the DBI, they can be ignored
<LI>the driver is unlikely to warn you that it's ignoring an attribute
<LI>
</UL></UL><UL>
<LI><H2>Many drivers only care about the number vs string distinction
</H2>
<UL>
<LI>and ignore other kinds of TYPE value
<LI>
</UL></UL><UL>
<LI><H2>For some drivers/databases that do pay attention to the TYPE
</H2>
<UL>
<LI>using the wrong type can mean an index on the value field isnt used
<LI>
</UL></UL><UL>
<LI><H2>Some drivers let you specify private types
</H2>
<UL>
$sth->bind_param(1, $value, { ora_type => 97 });
<BR></UL></UL><UL>
<H2>-</H2>
</UL></P>
<P> -->
</Body>
</HTML>