You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by gk...@apache.org on 2019/10/28 16:17:11 UTC
svn commit: r1869081 - in /db/torque/torque4/trunk/torque-test: README.md
src/test/java/org/apache/torque/DataTest.java
Author: gk
Date: Mon Oct 28 16:17:11 2019
New Revision: 1869081
URL: http://svn.apache.org/viewvc?rev=1869081&view=rev
Log:
- add license
- clean up inline comment
Modified:
db/torque/torque4/trunk/torque-test/README.md
db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/DataTest.java
Modified: db/torque/torque4/trunk/torque-test/README.md
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/README.md?rev=1869081&r1=1869080&r2=1869081&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-test/README.md (original)
+++ db/torque/torque4/trunk/torque-test/README.md Mon Oct 28 16:17:11 2019
@@ -1,3 +1,20 @@
+<!---
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
# Test Module - Test against Databases
## Generaal
Modified: db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/DataTest.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/DataTest.java?rev=1869081&r1=1869080&r2=1869081&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/DataTest.java (original)
+++ db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/DataTest.java Mon Oct 28 16:17:11 2019
@@ -1240,13 +1240,13 @@ public class DataTest extends BaseDataba
likeResults.put("a\\\\c", "a\\c"); // escaped \ three times
likeResults.put("a\\\\%", "a\\c");
- // mysql: like '%\\c' ESCAPE '|' succeeds , you must double any \ that you use in LIKE strings.
- // %\\\\c fails, may be to https://dev.mysql.com/doc/refman/8.0/en/string-comparison-functions.html,
+ // mysql: like '%\\c' ESCAPE '|' succeeds, but
+ // %\\\\c fails, see https://dev.mysql.com/doc/refman/8.0/en/string-comparison-functions.html,
// MySQL uses C escape syntax in strings.. you must double any \ that you use in LIKE strings.
- // platform specific mysql:
- //likeResults.put("%\\\\\\\\c", "a\\c"); //
+ // That is platform specific mysql:
+ // likeResults.put("%\\\\\\\\c", "a\\c"); // succeeds in mysql
// other platforms ?
- //likeResults.put("%\\\\c", "a\\c"); //
+ //likeResults.put("%\\\\c", "a\\c"); // fails in mysql
likeResults.put("a\\*c", "a*c");
likeResults.put("a\\*%", "a*c");
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org