-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed failing Date/time and math functions tests with Oracle DB. (#1546)
* Fixed failing Date/time and math functions tests with Oracle DB. - fixes issue #1539 - fixes issue #1540 - fixes issue #1541 * Fixed failing Date/time and math functions tests with Oracle DB: Review notes applied * Fixed failing Date/time tests in MS SQL. - fixes issue #1548 - fixes issue #1549 - fixes issue #1550 * Issue #1547: LN() failure with SQLServer * Fixed TestJava8DateTime test failures caused by cast exceptions between date/time/datetime types. * Skip EXTRACT(WEEK FROM date) test on Derby. Signed-off-by: Tomas Kraus <tomas.kraus@oracle.com>
- Loading branch information
1 parent
af30f4a
commit 72436b3
Showing
18 changed files
with
830 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...e.core/src/main/java/org/eclipse/persistence/internal/databaseaccess/PlatformWrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0, | ||
* or the Eclipse Distribution License v. 1.0 which is available at | ||
* http://www.eclipse.org/org/documents/edl-v10.php. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause | ||
*/ | ||
|
||
// Contributors: | ||
// Oracle - initial API and implementation | ||
package org.eclipse.persistence.internal.databaseaccess; | ||
|
||
import java.sql.ResultSet; | ||
|
||
import org.eclipse.persistence.internal.sessions.AbstractSession; | ||
|
||
/** | ||
* Marks {@link DatabasePlatform} specific wrapper of instance from {@link java.sql.ResultSet}. | ||
* Instances returned by {@link DatabasePlatform#getObjectFromResultSet(ResultSet, int, int, AbstractSession)} | ||
* from {@code ResultSet} and marked as wrappers are considered as unknown to EclipseLink core module | ||
* so they are returned back to {@link DatabasePlatform#convertObject(Object, Class)} method to be converted | ||
* to target {@link org.eclipse.persistence.internal.helper.DatabaseField#type} class. | ||
*/ | ||
public interface PlatformWrapper { | ||
|
||
/** | ||
* Check whether provided instance is marked as {@link DatabasePlatform} specific wrapper. | ||
* @param instance instance to be checked | ||
* @return value of {@code true} when provided instance is marked as {@link DatabasePlatform} | ||
* specific wrapper or {@code false} otherwise | ||
*/ | ||
static boolean isPlatformWrapper(Object instance) { | ||
return PlatformWrapper.class.isInstance(instance); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.