Tag: cws_dev300_dba30c User: oj Date: 2008-05-06 10:40:02+0000 Modified: dba/connectivity/qa/drivers/dbase/DBaseDateFunctions.java dba/connectivity/qa/drivers/dbase/DBaseDriverTest.java dba/connectivity/qa/drivers/dbase/DBaseNumericFunctions.java dba/connectivity/qa/drivers/dbase/DBaseStringFunctions.java
Log: #i75557# add test for lower() like File Changes: Directory: /dba/connectivity/qa/drivers/dbase/ ============================================== File [changed]: DBaseDateFunctions.java Url: http://dba.openoffice.org/source/browse/dba/connectivity/qa/drivers/dbase/DBaseDateFunctions.java?r1=1.5&r2=1.5.10.1 Delta lines: +3 -3 ------------------- --- DBaseDateFunctions.java 2008-04-10 07:48:57+0000 1.5 +++ DBaseDateFunctions.java 2008-05-06 10:39:59+0000 1.5.10.1 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DBaseDateFunctions.java,v $ - * $Revision: 1.5 $ + * $Revision: 1.5.10.1 $ * * This file is part of OpenOffice.org. * @@ -50,7 +50,7 @@ public class DBaseDateFunctions { - private String where = "FROM \"biblio\" \"biblio\" where \"Identifier\" = 'BOR04'"; + private String where = "FROM \"biblio\" \"biblio\" where \"Identifier\" = 'BOR00'"; private XMultiServiceFactory m_xORB; private DBaseDriverTest testcase; public DBaseDateFunctions(XMultiServiceFactory _xORB,DBaseDriverTest _testcase){ File [changed]: DBaseDriverTest.java Url: http://dba.openoffice.org/source/browse/dba/connectivity/qa/drivers/dbase/DBaseDriverTest.java?r1=1.4&r2=1.4.10.1 Delta lines: +3 -3 ------------------- --- DBaseDriverTest.java 2008-04-10 07:49:11+0000 1.4 +++ DBaseDriverTest.java 2008-05-06 10:39:59+0000 1.4.10.1 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DBaseDriverTest.java,v $ - * $Revision: 1.4 $ + * $Revision: 1.4.10.1 $ * * This file is part of OpenOffice.org. * @@ -51,7 +51,7 @@ private static Properties props = new Properties(); private XDriver m_xDiver; - private String where = "FROM \"biblio\" \"biblio\" where \"Identifier\" = 'BOR02b'"; + private String where = "FROM \"biblio\" \"biblio\" where \"Identifier\" = 'BOR00'"; static { try { File [changed]: DBaseNumericFunctions.java Url: http://dba.openoffice.org/source/browse/dba/connectivity/qa/drivers/dbase/DBaseNumericFunctions.java?r1=1.5&r2=1.5.10.1 Delta lines: +3 -3 ------------------- --- DBaseNumericFunctions.java 2008-04-10 07:49:26+0000 1.5 +++ DBaseNumericFunctions.java 2008-05-06 10:40:00+0000 1.5.10.1 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DBaseNumericFunctions.java,v $ - * $Revision: 1.5 $ + * $Revision: 1.5.10.1 $ * * This file is part of OpenOffice.org. * @@ -50,7 +50,7 @@ public class DBaseNumericFunctions { - private String where = "FROM \"biblio\" \"biblio\" where \"Identifier\" = 'BOR04'"; + private String where = "FROM \"biblio\" \"biblio\" where \"Identifier\" = 'BOR00'"; private XMultiServiceFactory m_xORB; private DBaseDriverTest testcase; public DBaseNumericFunctions(XMultiServiceFactory _xORB,DBaseDriverTest _testcase){ File [changed]: DBaseStringFunctions.java Url: http://dba.openoffice.org/source/browse/dba/connectivity/qa/drivers/dbase/DBaseStringFunctions.java?r1=1.5&r2=1.5.10.1 Delta lines: +7 -3 ------------------- --- DBaseStringFunctions.java 2008-04-10 07:49:46+0000 1.5 +++ DBaseStringFunctions.java 2008-05-06 10:40:00+0000 1.5.10.1 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DBaseStringFunctions.java,v $ - * $Revision: 1.5 $ + * $Revision: 1.5.10.1 $ * * This file is part of OpenOffice.org. * @@ -50,7 +50,7 @@ public class DBaseStringFunctions { - private String where = "FROM \"biblio\" \"biblio\" where \"Identifier\" = 'BOR04'"; + private String where = "FROM \"biblio\" \"biblio\" where \"Identifier\" = 'BOR00'"; private XMultiServiceFactory m_xORB; private DBaseDriverTest testcase; public DBaseStringFunctions(XMultiServiceFactory _xORB,DBaseDriverTest _testcase){ @@ -191,6 +191,10 @@ XRow row = execute(xRowRes,"lower('TEST'),LCASE('TEST') "); assure("lower('TEST') failed!",row.getString(1).equals("test")); assure("lcase('TEST') failed!",row.getString(2).equals("test")); + final String t = where; + where = "FROM \"biblio\" \"biblio\" where LOWER(\"Identifier\") like 'bor%'"; + row = execute(xRowRes,"lower('TEST'),LCASE('TEST') "); + where = t; } private void acsii(XRowSet xRowRes) throws com.sun.star.uno.Exception,com.sun.star.beans.UnknownPropertyException { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
