]> err.no Git - sope/commitdiff
register 'http' url as postgresql ...
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Mon, 21 Feb 2005 01:07:26 +0000 (01:07 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Mon, 21 Feb 2005 01:07:26 +0000 (01:07 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@582 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-gdl1/GDLAccess/EOAdaptor.m

index 7f343ffee3e2141a58e8a25809b3c1b8f60ab744..f0f7f1d2dc2234043c7fca9a118feac7bc3ad311 100644 (file)
   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;
 }