Tag: oo_pqsdbc_01
User: jbu     
Date: 2007/02/15 12:04:52

Modified:
   dba/connectivity/source/drivers/postgresql/makefile.mk
   dba/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx
   dba/connectivity/source/drivers/postgresql/pq_statics.cxx
   dba/connectivity/source/drivers/postgresql/pq_tools.cxx

Log:
 #i74185# table wizard can now work with postgresql driver

File Changes:

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

File [changed]: makefile.mk
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/postgresql/makefile.mk?r1=1.1.2.10&r2=1.1.2.11
Delta lines:  +3 -3
-------------------
--- makefile.mk 17 Jul 2006 21:18:04 -0000      1.1.2.10
+++ makefile.mk 15 Feb 2007 20:04:47 -0000      1.1.2.11
@@ -2,9 +2,9 @@
 #
 #   $RCSfile: makefile.mk,v $
 #
-#   $Revision: 1.1.2.10 $
+#   $Revision: 1.1.2.11 $
 #
-#   last change: $Author: jbu $ $Date: 2006/07/17 21:18:04 $
+#   last change: $Author: jbu $ $Date: 2007/02/15 20:04:47 $
 #
 #   The Contents of this file are made available subject to the terms of
 #   either of the following licenses
@@ -79,7 +79,7 @@
 
 PQ_SDBC_MAJOR=0
 PQ_SDBC_MINOR=7
-PQ_SDBC_MICRO=3
+PQ_SDBC_MICRO=4
 
 CFLAGS+=-I$(SOLARINCDIR)$/postgresql \
        -DPOSTGRESQL_MAJOR=$(POSTGRESQL_MAJOR) \

File [changed]: pq_databasemetadata.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx?r1=1.1.2.10&r2=1.1.2.11
Delta lines:  +9 -3
-------------------
--- pq_databasemetadata.cxx     27 May 2006 11:32:13 -0000      1.1.2.10
+++ pq_databasemetadata.cxx     15 Feb 2007 20:04:47 -0000      1.1.2.11
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: pq_databasemetadata.cxx,v $
  *
- *  $Revision: 1.1.2.10 $
+ *  $Revision: 1.1.2.11 $
  *
- *  last change: $Author: jbu $ $Date: 2006/05/27 11:32:13 $
+ *  last change: $Author: jbu $ $Date: 2007/02/15 20:04:47 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -1849,8 +1849,14 @@
         sal_Int32 dataType 
=typeNameToDataType(xRow->getString(5),xRow->getString(2));
         sal_Int32 precision = xRow->getString(3).toInt32();
         
-        if( dataType == com::sun::star::sdbc::DataType::CHAR  )
-        {
+        if( dataType == com::sun::star::sdbc::DataType::CHAR  ||
+            dataType == com::sun::star::sdbc::DataType::VARCHAR &&
+            xRow->getString(TYPE_NAME+1).equalsIgnoreAsciiCaseAscii( 
"varchar") ) 
+        {
+            // reflect varchar as varchar with upper limit !
+            //NOTE: the sql spec requires varchar to have an upper limit, 
however
+            //      in postgresql the upper limit is optional, no limit means 
unlimited
+            //      length (=1GB).
             precision = 0x40000000; // about 1 GB, see character type docs in 
postgresql
             row[CREATE_PARAMS] <<= ASCII_STR( "length" );
         }

File [changed]: pq_statics.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/postgresql/pq_statics.cxx?r1=1.1.2.5&r2=1.1.2.6
Delta lines:  +3 -3
-------------------
--- pq_statics.cxx      22 Jan 2006 15:14:35 -0000      1.1.2.5
+++ pq_statics.cxx      15 Feb 2007 20:04:48 -0000      1.1.2.6
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: pq_statics.cxx,v $
  *
- *  $Revision: 1.1.2.5 $
+ *  $Revision: 1.1.2.6 $
  *
- *  last change: $Author: jbu $ $Date: 2006/01/22 15:14:35 $
+ *  last change: $Author: jbu $ $Date: 2007/02/15 20:04:48 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -655,7 +655,7 @@
 
                 { "text", com::sun::star::sdbc::DataType::VARCHAR },
                 { "bpchar", com::sun::star::sdbc::DataType::CHAR },
-                { "varchar", com::sun::star::sdbc::DataType::CHAR },
+                { "varchar", com::sun::star::sdbc::DataType::VARCHAR },
 
                 { "float4", com::sun::star::sdbc::DataType::REAL },
                 { "float8", com::sun::star::sdbc::DataType::DOUBLE },

File [changed]: pq_tools.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/postgresql/pq_tools.cxx?r1=1.1.2.7&r2=1.1.2.8
Delta lines:  +1 -1
-------------------
--- pq_tools.cxx        1 May 2006 19:19:07 -0000       1.1.2.7
+++ pq_tools.cxx        15 Feb 2007 20:04:48 -0000      1.1.2.8
@@ -216,7 +216,7 @@
 sal_Bool extractBoolProperty(
     const Reference< XPropertySet > & descriptor, const rtl::OUString &name )
 {
-    sal_Bool value;
+    sal_Bool value = sal_False;
     descriptor->getPropertyValue( name ) >>= value;
     return value;
 }




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

Reply via email to