001/*
002// This software is subject to the terms of the Eclipse Public License v1.0
003// Agreement, available at the following URL:
004// http://www.eclipse.org/legal/epl-v10.html.
005// You must accept the terms of that agreement to use this software.
006//
007// Copyright (C) 2008-2009 Pentaho
008// All Rights Reserved.
009*/
010package mondrian.spi.impl;
011
012import java.sql.Connection;
013import java.sql.SQLException;
014import java.util.List;
015
016/**
017 * Implementation of {@link mondrian.spi.Dialect} for the Ingres database.
018 *
019 * @author jhyde
020 * @since Nov 23, 2008
021 */
022public class IngresDialect extends JdbcDialectImpl {
023
024    public static final JdbcDialectFactory FACTORY =
025        new JdbcDialectFactory(
026            IngresDialect.class,
027            DatabaseProduct.INGRES);
028
029    /**
030     * Creates an IngresDialect.
031     *
032     * @param connection Connection
033     */
034    public IngresDialect(Connection connection) throws SQLException {
035        super(connection);
036    }
037
038    public String generateInline(
039        List<String> columnNames,
040        List<String> columnTypes,
041        List<String[]> valueList)
042    {
043        return generateInlineGeneric(
044            columnNames, columnTypes, valueList, null, false);
045    }
046
047    public boolean requiresOrderByAlias() {
048        return true;
049    }
050}
051
052// End IngresDialect.java