From: helge Date: Mon, 21 Feb 2005 01:07:26 +0000 (+0000) Subject: register 'http' url as postgresql ... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6278442d3d88ed60374693340994310bc39b506;p=sope register 'http' url as postgresql ... git-svn-id: http://svn.opengroupware.org/SOPE/trunk@582 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-gdl1/GDLAccess/EOAdaptor.m b/sope-gdl1/GDLAccess/EOAdaptor.m index 7f343ffe..f0f7f1d2 100644 --- a/sope-gdl1/GDLAccess/EOAdaptor.m +++ b/sope-gdl1/GDLAccess/EOAdaptor.m @@ -191,6 +191,14 @@ if ([_scheme isEqualToString:@"postgresql"]) return @"PostgreSQL"; if ([_scheme isEqualToString:@"sybase"]) return @"Sybase10"; if ([_scheme isEqualToString:@"sqlite"]) return @"SQLite3"; + + if ([_scheme isEqualToString:@"http"]) { + NSLog(@"WARNING(%s): asked for 'http' URL, " + @"please fix the URLs to 'postgresql'!", + __PRETTY_FUNCTION__); + return @"PostgreSQL"; + } + return _scheme; }