User: rt      
Date: 2008-01-30 07:53:29+0000
Modified:
   dba/connectivity/source/drivers/hsqldb/HDriver.cxx

Log:
 INTEGRATION: CWS dba24d (1.24.22); FILE MERGED
 2007/12/01 13:36:27 fs 1.24.22.2: RESYNC: (1.24-1.25); FILE MERGED
 2007/11/23 12:14:15 oj 1.24.22.1: #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.26&r2=1.27
Delta lines:  +2 -2
-------------------
--- HDriver.cxx 2008-01-07 09:46:50+0000        1.26
+++ HDriver.cxx 2008-01-30 07:53:27+0000        1.27
@@ -258,8 +258,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]

Reply via email to