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

Diff of /Sprout/ERDBTypeCounter.pm

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

revision 1.2, Tue Jun 30 19:53:01 2009 UTC revision 1.3, Sat Oct 1 10:35:02 2011 UTC
# Line 204  Line 204 
204    
205  =head3 sqlType  =head3 sqlType
206    
207      my $typeString = $et->sqlType();      my $typeString = $et->sqlType($dbh);
208    
209  Return the SQL data type for this field type.  Return the SQL data type for this field type.
210    
211    =over 4
212    
213    =item dbh
214    
215    Open L<DBKernel> handle for the database in question. This is used when the
216    datatype may be different depending on the DBMS used.
217    
218    =item RETURN
219    
220    Returns the datatype string to be used when creating a field of this type in
221    an SQL table.
222    
223    =back
224    
225  =cut  =cut
226    
227  sub sqlType {  sub sqlType {
228      return "BIGINT UNSIGNED";      my ($self, $dbh) = @_;
229        my $retVal = "BIGINT";
230        if ($dbh->dbms eq 'mysql') {
231            $retVal = "BIGINT UNSIGNED";
232        }
233        return $retVal;
234  }  }
235    
236  =head3 indexMod  =head3 indexMod

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3