From c6278442d3d88ed60374693340994310bc39b506 Mon Sep 17 00:00:00 2001 From: helge Date: Mon, 21 Feb 2005 01:07:26 +0000 Subject: [PATCH] register 'http' url as postgresql ... git-svn-id: http://svn.opengroupware.org/SOPE/trunk@582 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-gdl1/GDLAccess/EOAdaptor.m | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } -- 2.39.5