Tag: cws_src680_dba24d User: oj Date: 2007-11-23 12:14:17+0000 Modified: dba/connectivity/source/drivers/hsqldb/HDriver.cxx
Log: #i81896# throw an exception when the url is not a system file path File Changes: Directory: /dba/connectivity/source/drivers/hsqldb/ =================================================== File [changed]: HDriver.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/hsqldb/HDriver.cxx?r1=1.24&r2=1.24.22.1 Delta lines: +5 -5 ------------------- --- HDriver.cxx 2007-08-27 16:04:54+0000 1.24 +++ HDriver.cxx 2007-11-23 12:14:15+0000 1.24.22.1 @@ -4,9 +4,9 @@ * * $RCSfile: HDriver.cxx,v $ * - * $Revision: 1.24 $ + * $Revision: 1.24.22.1 $ * - * last change: $Author: vg $ $Date: 2007/08/27 16:04:54 $ + * last change: $Author: oj $ $Date: 2007/11/23 12:14:15 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -220,8 +220,8 @@ ::rtl::OUString sSystemPath; osl_getSystemPathFromFileURL( sURL.pData, &sSystemPath.pData ); sal_Int32 nIndex = sSystemPath.lastIndexOf('.'); - if ( !sURL.getLength() ) - throw SQLException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("File URL is not correct.")) + if ( !sURL.getLength() || !sSystemPath.getLength() ) + throw SQLException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("The file URL is not correct.")) ,*this ,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("HY0000")) ,1000,Any()); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
