* EOAdaptors/Postgres95/Postgres95SQLExpression.m

([Postgres95SQLExpression columnTypeStringForAttribute:]):
	Implement special handling for text types to ignore precision
	and width as suggested by Matt Rice <ratmice@yahoo.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@18952 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ayers 2004-03-29 14:40:15 +00:00
parent e6fab07914
commit f37ceb618f
2 changed files with 24 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2003-03-29 David Ayers <d.ayers@inode.at>
* EOAdaptors/Postgres95/Postgres95SQLExpression.m
([Postgres95SQLExpression columnTypeStringForAttribute:]):
Implement special handling for text types to ignore precision
and width as suggested by Matt Rice <ratmice@yahoo.com>.
2003-03-19 David Ayers <d.ayers@inode.at>
* *.[hm] Use GNUSTEP in favor of NeXT_Foundation_LIBRARY

View file

@ -658,4 +658,21 @@ RCS_ID("$Id$")
return finalEntitiesString;
}
- (NSString *)columnTypeStringForAttribute:(EOAttribute *)attribute
{
NSString *extType = [attribute externalType];
NSString *columnTypeString = nil;
if ([extType isEqualToString: @"text"])
{
columnTypeString = [NSString stringWithFormat: @"%@", extType];
}
else
{
columnTypeString = [super columnTypeStringForAttribute: attribute];
}
return columnTypeString;
}
@end