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

Diff of /Sprout/ERDBTypeImage.pm

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

revision 1.4, Tue Jun 30 19:53:01 2009 UTC revision 1.5, Sat Oct 1 10:35:02 2011 UTC
# Line 187  Line 187 
187    
188  =head3 sqlType  =head3 sqlType
189    
190      my $typeString = $et->sqlType();      my $typeString = $et->sqlType($dbh);
191    
192  Return the SQL data type for this field type.  Return the SQL data type for this field type.
193    
194    =over 4
195    
196    =item dbh
197    
198    Open L<DBKernel> handle for the database in question. This is used when the
199    datatype may be different depending on the DBMS used.
200    
201    =item RETURN
202    
203    Returns the datatype string to be used when creating a field of this type in
204    an SQL table.
205    
206    =back
207    
208  =cut  =cut
209    
210  sub sqlType {  sub sqlType {
211      return "LONGTEXT";      my ($self, $dbh) = @_;
212        my $retVal = "TEXT";
213        if ($dbh->dbms eq 'mysql') {
214            $retVal = "LONGTEXT";
215        }
216        return $retVal;
217  }  }
218    
219  =head3 indexMod  =head3 indexMod

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3