rpms/openoffice.org/F-10 openoffice.org-3.1.1.ooo104329.dbaccess.primarykeys.patch, NONE, 1.1 openoffice.org.spec, 1.1734, 1.1735
Caolan McNamara
caolanm at fedoraproject.org
Wed Aug 19 08:20:39 UTC 2009
- Previous message: rpms/neon/F-10 neon.spec, 1.49, 1.50 sources, 1.15, 1.16 neon-0.28.4-trustv1ca.patch, 1.1, NONE
- Next message: rpms/openoffice.org/F-11 openoffice.org-3.1.1.ooo104329.dbaccess.primarykeys.patch, NONE, 1.1 openoffice.org.spec, 1.1927, 1.1928
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: caolanm
Update of /cvs/pkgs/rpms/openoffice.org/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9578/F-10
Modified Files:
openoffice.org.spec
Added Files:
openoffice.org-3.1.1.ooo104329.dbaccess.primarykeys.patch
Log Message:
Resolves: rhbz#514683 add openoffice.org-3.1.1.ooo104329.dbaccess.primarykeys.patch
openoffice.org-3.1.1.ooo104329.dbaccess.primarykeys.patch:
dbaccess/source/ui/misc/WCopyTable.cxx | 2 +-
dbaccess/source/ui/tabledesign/TEditControl.cxx | 2 +-
dbaccess/source/ui/tabledesign/TableController.cxx | 2 +-
wizards/com/sun/star/wizards/db/DBMetaData.java | 4 ++--
wizards/com/sun/star/wizards/table/TableWizard.java | 6 +++---
5 files changed, 8 insertions(+), 8 deletions(-)
--- NEW FILE openoffice.org-3.1.1.ooo104329.dbaccess.primarykeys.patch ---
diff -ru wizards.orig/com/sun/star/wizards/db/DBMetaData.java wizards/com/sun/star/wizards/db/DBMetaData.java
--- wizards.orig/com/sun/star/wizards/db/DBMetaData.java 2009-07-30 14:28:39.000000000 +0100
+++ wizards/com/sun/star/wizards/db/DBMetaData.java 2009-07-30 14:33:22.000000000 +0100
@@ -748,11 +748,11 @@
}
}
- public boolean supportsCoreSQLGrammar()
+ public boolean supportsPrimaryKey()
{
try
{
- return xDBMetaData.supportsCoreSQLGrammar();
+ return xDBMetaData.supportsMinimumSQLGrammar() || xDBMetaData.supportsCoreSQLGrammar();
}
catch (SQLException e)
{
diff -ru wizards.orig/com/sun/star/wizards/table/TableWizard.java wizards/com/sun/star/wizards/table/TableWizard.java
--- wizards.orig/com/sun/star/wizards/table/TableWizard.java 2009-07-30 14:28:39.000000000 +0100
+++ wizards/com/sun/star/wizards/table/TableWizard.java 2009-07-30 14:29:50.000000000 +0100
@@ -250,7 +250,7 @@
{
curScenarioSelector = new ScenarioSelector(this, this.curTableDescriptor, slblFields, slblSelFields);
curFieldFormatter = new FieldFormatter(this, curTableDescriptor);
- if (this.curTableDescriptor.supportsCoreSQLGrammar())
+ if (this.curTableDescriptor.supportsPrimaryKey())
{
curPrimaryKeyHandler = new PrimaryKeyHandler(this, curTableDescriptor);
}
@@ -264,7 +264,7 @@
boolean bTableCreated = false;
String schemaname = curFinalizer.getSchemaName();
String catalogname = curFinalizer.getCatalogName();
- if (curTableDescriptor.supportsCoreSQLGrammar())
+ if (curTableDescriptor.supportsPrimaryKey())
{
String[] keyfieldnames = curPrimaryKeyHandler.getPrimaryKeyFields(curTableDescriptor);
if (keyfieldnames != null)
@@ -359,7 +359,7 @@
int i = 0;
i = insertRoadmapItem(0, true, m_oResource.getResText(UIConsts.RID_TABLE + 2), SOMAINPAGE);
i = insertRoadmapItem(i, false, m_oResource.getResText(UIConsts.RID_TABLE + 3), SOFIELDSFORMATPAGE);
- if (this.curTableDescriptor.supportsCoreSQLGrammar())
+ if (this.curTableDescriptor.supportsPrimaryKey())
{
i = insertRoadmapItem(i, false, m_oResource.getResText(UIConsts.RID_TABLE + 4), SOPRIMARYKEYPAGE);
}
diff -ru dbaccess.orig/source/ui/misc/WCopyTable.cxx dbaccess/source/ui/misc/WCopyTable.cxx
--- dbaccess.orig/source/ui/misc/WCopyTable.cxx 2009-07-30 12:58:32.000000000 +0100
+++ dbaccess/source/ui/misc/WCopyTable.cxx 2009-07-30 14:18:18.000000000 +0100
@@ -1364,7 +1364,7 @@
try
{
Reference< XDatabaseMetaData > xMetaData( _rxConnection->getMetaData(), UNO_QUERY_THROW );
- bSupports = xMetaData->supportsCoreSQLGrammar();
+ bSupports = xMetaData->supportsCoreSQLGrammar() || xMetaData->supportsMinimumSQLGrammar();
}
catch(const Exception&)
{
diff -ru dbaccess.orig/source/ui/tabledesign/TableController.cxx dbaccess/source/ui/tabledesign/TableController.cxx
--- dbaccess.orig/source/ui/tabledesign/TableController.cxx 2009-07-30 12:58:31.000000000 +0100
+++ dbaccess/source/ui/tabledesign/TableController.cxx 2009-07-30 14:18:18.000000000 +0100
@@ -1119,7 +1119,7 @@
}
if(!bFoundPKey)
{
- if(_bNew && xMetaData.is() && xMetaData->supportsCoreSQLGrammar())
+ if(_bNew && xMetaData.is() && (xMetaData->supportsCoreSQLGrammar() || xMetaData->supportsMinimumSQLGrammar()))
{
String sTitle(ModuleRes(STR_TABLEDESIGN_NO_PRIM_KEY_HEAD));
String sMsg(ModuleRes(STR_TABLEDESIGN_NO_PRIM_KEY));
diff -ru dbaccess.orig/source/ui/tabledesign/TEditControl.cxx dbaccess/source/ui/tabledesign/TEditControl.cxx
--- dbaccess.orig/source/ui/tabledesign/TEditControl.cxx 2009-07-30 12:58:31.000000000 +0100
+++ dbaccess/source/ui/tabledesign/TEditControl.cxx 2009-07-30 14:18:18.000000000 +0100
@@ -1527,7 +1527,7 @@
Reference<XConnection> xCon = rController.getConnection();
Reference< XDatabaseMetaData> xMetaData = xCon.is() ? xCon->getMetaData() : Reference< XDatabaseMetaData>();
- if(!xMetaData.is() || !xMetaData->supportsCoreSQLGrammar())
+ if(!xMetaData.is() || (!xMetaData->supportsCoreSQLGrammar() && !xMetaData->supportsMinimumSQLGrammar()))
return sal_False; // no primary keys allowed
}
Index: openoffice.org.spec
===================================================================
RCS file: /cvs/pkgs/rpms/openoffice.org/F-10/openoffice.org.spec,v
retrieving revision 1.1734
retrieving revision 1.1735
diff -u -p -r1.1734 -r1.1735
--- openoffice.org.spec 16 Jun 2009 11:59:08 -0000 1.1734
+++ openoffice.org.spec 19 Aug 2009 08:20:38 -0000 1.1735
@@ -151,6 +151,7 @@ Patch77: openoffice.org-3.1.0.ooo101354.
Patch78: openoffice.org-3.1.0.ooo101379.vcl.qstart.SM.patch
Patch79: openoffice.org-3.1.0.ooo102566.sc.less.frenetic.progress.patch
Patch80: workspace.pdfextfix02.patch
+Patch81: openoffice.org-3.1.1.ooo104329.dbaccess.primarykeys.patch
%define instdir %{_libdir}
%define baseinstdir %{instdir}/openoffice.org
@@ -1425,6 +1426,7 @@ tar xzf %{PATCH21}
%patch78 -p0 -b .ooo101379.vcl.qstart.SM.patch
%patch79 -p0 -b .ooo102566.sc.less.frenetic.progress.patch
%patch80 -p0 -b .workspace.pdfextfix02.patch
+%patch81 -p0 -b .ooo104329.dbaccess.primarykeys.patch
%build
echo build start time is `date`, diskspace: `df -h . | tail -n 1`
@@ -3800,10 +3802,11 @@ fi
unopkg list --shared > /dev/null 2>&1 || :
%changelog
-* Tue Jun 09 2009 Caolán McNamara <caolanm at redhat.com> - 1:3.0.1-15.5.UNRELEASED
+* Wed Aug 19 2009 Caolán McNamara <caolanm at redhat.com> - 1:3.0.1-15.5.UNRELEASED
- Resolves: rhbz#499474 soffice and .recently-used.xbel
- Resolves: rhbz#504419 openoffice.org-3.1.0.ooo102566.sc.less.frenetic.progress.patch
- Resolves: rhbz#506039 workspace.pdfextfix02.patch upsidedown images in pdf import
+- Resolves: rhbz#514683 add openoffice.org-3.1.1.ooo104329.dbaccess.primarykeys.patch
* Fri May 01 2009 Caolán McNamara <caolanm at redhat.com> - 1:3.0.1-15.4
- Resolves: rhbz#494643 EMF polypolygons issue
- Previous message: rpms/neon/F-10 neon.spec, 1.49, 1.50 sources, 1.15, 1.16 neon-0.28.4-trustv1ca.patch, 1.1, NONE
- Next message: rpms/openoffice.org/F-11 openoffice.org-3.1.1.ooo104329.dbaccess.primarykeys.patch, NONE, 1.1 openoffice.org.spec, 1.1927, 1.1928
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list