The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

<!--  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>&nbsp;&nbsp;
         <A HREF="sld039.htm">Previous</A>&nbsp;&nbsp;
         <A HREF="sld041.htm">Next</A>&nbsp;&nbsp;
         <A HREF="sld102.htm">Last</A>&nbsp;&nbsp;
&nbsp;&nbsp;         <A HREF="index.htm">Index</A>&nbsp;&nbsp;
         <A HREF="dbi.perl.org">Home</A>&nbsp;&nbsp;
         <A HREF="tsld040.htm">Text</A>&nbsp;&nbsp;
     </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 isn’t used
<LI>
</UL></UL><UL>
<LI><H2>Some drivers let you specify private types
</H2>
<UL>
$sth-&#062bind_param(1, $value, { ora_type =&#062 97 });
<BR></UL></UL><UL>
<H2>-</H2>
</UL></P>
<P>  -->
</Body>
</HTML>