Tag: cws_src680_sqlite
User: oj      
Date: 2006/09/06 00:40:59

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

Log:
 elimante the absolute path with the temp 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.2&r2=1.1.2.3
Delta lines:  +12 -4
--------------------
--- sqQueryPreparedCursor.cpp   4 Sep 2006 22:32:13 -0000       1.1.2.2
+++ sqQueryPreparedCursor.cpp   6 Sep 2006 07:40:56 -0000       1.1.2.3
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: sqQueryPreparedCursor.cpp,v $
  *
- *  $Revision: 1.1.2.2 $
+ *  $Revision: 1.1.2.3 $
  *
- *  last change: $Author: aklitzing $ $Date: 2006/09/04 22:32:13 $
+ *  last change: $Author: oj $ $Date: 2006/09/06 07:40:56 $
  *
  *  Original author: André Klitzing
  *
@@ -36,7 +36,9 @@
 #include "sqQueryPreparedCursor.h"
 #include "sqPrepare.h"
 #include "sqDB.h"
-
+#ifndef _OSL_FILE_HXX_
+#include <osl/file.hxx>
+#endif
 // ----------------------------------------------------------------------
 // CTor, DTor, Operators
 // ----------------------------------------------------------------------
@@ -56,7 +58,13 @@
 
        // DEBUG-CODE!!!!
        sqPrepare debug("??");
-       debug.setText(1, "/home/andre/"); // change it to a writable directory 
or OOo will crash at the moment!
+    ::rtl::OUString sTempDirURL;
+    ::osl::FileBase::getTempDirURL(sTempDirURL);
+    if ( !sTempDirURL.getLength() )
+        sTempDirURL = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("~"));
+
+    ::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!
        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