[Bio] / Sprout / ERDBTypeDate.pm Repository:
ViewVC logotype

Diff of /Sprout/ERDBTypeDate.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1, Mon Jan 19 21:46:21 2009 UTC revision 1.3, Sat Oct 1 10:35:02 2011 UTC
# Line 270  Line 270 
270    
271  =head3 sqlType  =head3 sqlType
272    
273      my $typeString = $et->sqlType();      my $typeString = $et->sqlType($dbh);
274    
275  Return the SQL data type for this field type.  Return the SQL data type for this field type.
276    
277    =over 4
278    
279    =item dbh
280    
281    Open L<DBKernel> handle for the database in question. This is used when the
282    datatype may be different depending on the DBMS used.
283    
284    =item RETURN
285    
286    Returns the datatype string to be used when creating a field of this type in
287    an SQL table.
288    
289    =back
290    
291  =cut  =cut
292    
293  sub sqlType {  sub sqlType {
# Line 338  Line 352 
352      my $defaultValue = $et->default();      my $defaultValue = $et->default();
353    
354  Default value to be used for fields of this type if no default value is  Default value to be used for fields of this type if no default value is
355  specified in the database definition or in an [[ERDBLoadGroup#Put]]  specified in the database definition or in an L<ERDBLoadGroup/Put>
356  call during a loader operation. The default is undefined, which means  call during a loader operation. The default is undefined, which means
357  an error will be thrown during the load.  an error will be thrown during the load.
358    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3