Tag: cws_src680_dba24
User: oj      
Date: 05/02/09 02:08:03

Modified:
 /dba/dbaccess/source/ui/dlg/
  DbAdminImpl.cxx

Log:
 #i42289# check if host name was set, if not it could be a simple jdbc url 
which looks identical to oracle

File Changes:

Directory: /dba/dbaccess/source/ui/dlg/
=======================================

File [changed]: DbAdminImpl.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/DbAdminImpl.cxx?r1=1.7.4.1&r2=1.7.4.2
Delta lines:  +20 -13
---------------------
--- DbAdminImpl.cxx     27 Jan 2005 07:16:57 -0000      1.7.4.1
+++ DbAdminImpl.cxx     9 Feb 2005 10:08:00 -0000       1.7.4.2
@@ -567,6 +567,8 @@
                                
SFX_ITEMSET_GET(*m_pItemSetHelper->getOutputSet(), pHostName, SfxStringItem, 
DSID_CONN_HOSTNAME, sal_True);
                                
SFX_ITEMSET_GET(*m_pItemSetHelper->getOutputSet(), pPortNumber, SfxInt32Item, 
DSID_ORACLE_PORTNUMBER, sal_True);
                                
SFX_ITEMSET_GET(*m_pItemSetHelper->getOutputSet(), pDatabaseName, 
SfxStringItem, DSID_DATABASENAME, sal_True);
+                if ( pHostName && pHostName->GetValue().Len() )
+                {
                                sNewUrl = 
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("@"));
                                sNewUrl += 
lcl_createHostWithPort(pHostName,pPortNumber);
                                String sDatabaseName = pDatabaseName ? 
pDatabaseName->GetValue() : String();
@@ -577,6 +579,11 @@
                                        sNewUrl += String::CreateFromAscii(":");
                                        sNewUrl += sDatabaseName;
                                }
+                }
+                else
+                { // here someone entered a JDBC url which looks like oracle, 
so we have to use the url property
+
+                }
                        }
                        break;
                case DST_LDAP:




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

Reply via email to