Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate correct Informix SQL when parsing Concat Operator #1466

Merged
merged 1 commit into from
Aug 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*
* Copyright (c) 1998, 2021 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2015 IBM Corporation and/or its affiliates. All rights reserved.
* Copyright (c) 2016 Payara Foundation and/or its affiliates.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
Expand All @@ -16,6 +17,7 @@
// 12/11/2014 - Dalia Abo Sheasha
// - 454917 : Wrong SQL statement generated for Informix when GenerationType.IDENTITY strategy is used
// 02/19/2015 - Rick Curtis
// 05/13/2016 - David Weaver - Wrong SQL syntax generated for Informix when concat is used
// - 458877 : Add national character support
package org.eclipse.persistence.platform.database;

Expand All @@ -28,6 +30,7 @@
import java.util.Hashtable;

import org.eclipse.persistence.exceptions.ValidationException;
import org.eclipse.persistence.expressions.ExpressionOperator;
import org.eclipse.persistence.internal.databaseaccess.FieldTypeDefinition;
import org.eclipse.persistence.internal.helper.Helper;
import org.eclipse.persistence.queries.ValueReadQuery;
Expand Down Expand Up @@ -359,4 +362,15 @@ public ValueReadQuery buildSelectQueryForSequenceObject(String qualifiedSeqName,
public boolean isAlterSequenceObjectSupported() {
return true;
}

/**
* INTERNAL: Initialize any platform-specific operators
*/
@Override
protected void initializePlatformOperators() {
super.initializePlatformOperators();
addOperator(ExpressionOperator.simpleLogicalNoParens(ExpressionOperator.Concat, "||"));
}

}