Tag: cws_src680_sqlite
User: oj      
Date: 2006/09/06 23:06:11

Modified:
   dba/connectivity/source/drivers/sqlite3/sqQueryPreparedCursor.cpp

Log:
 convert url into system path

File Changes:

Directory: /dba/connectivity/source/drivers/sqlite3/
====================================================

File [changed]: sqQueryPreparedCursor.cpp
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/sqlite3/sqQueryPreparedCursor.cpp?r1=1.1.2.3&r2=1.1.2.4
Delta lines:  +10 -4
--------------------
--- sqQueryPreparedCursor.cpp   6 Sep 2006 07:40:56 -0000       1.1.2.3
+++ sqQueryPreparedCursor.cpp   7 Sep 2006 06:06:09 -0000       1.1.2.4
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: sqQueryPreparedCursor.cpp,v $
  *
- *  $Revision: 1.1.2.3 $
+ *  $Revision: 1.1.2.4 $
  *
- *  last change: $Author: oj $ $Date: 2006/09/06 07:40:56 $
+ *  last change: $Author: oj $ $Date: 2006/09/07 06:06:09 $
  *
  *  Original author: André Klitzing
  *
@@ -62,9 +62,15 @@
     ::osl::FileBase::getTempDirURL(sTempDirURL);
     if ( !sTempDirURL.getLength() )
         sTempDirURL = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("~"));
+    else
+    {
+        ::rtl::OUString sSystemPath;
+        ::osl::FileBase::getSystemPathFromFileURL(sTempDirURL,sSystemPath);
+        sTempDirURL = sSystemPath;
+    }
 
-    ::rtl::OString sOTempDirURL = ::rtl::OUStringToOString(sTempDirURL, 
RTL_TEXTENCODING_UTF8);
-       debug.setText(1, sOTempDirURL.getStr()); // change it to a writable 
directory or OOo will crash at the moment!
+    ::rtl::OString sOTempDir = ::rtl::OUStringToOString(sTempDirURL, 
RTL_TEXTENCODING_UTF8);
+       debug.setText(1, sOTempDir.getStr()); // change it to a writable 
directory or OOo will crash at the moment!
        debug.setText(2, m_table);
        char* debugStr = debug.getStr();
 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to