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;
014
015/**
016 * Implementation of {@link mondrian.spi.Dialect} for the Sybase database.
017 *
018 * @author jhyde
019 * @since Nov 23, 2008
020 */
021public class SybaseDialect extends JdbcDialectImpl {
022
023    public static final JdbcDialectFactory FACTORY =
024        new JdbcDialectFactory(
025            SybaseDialect.class,
026            DatabaseProduct.SYBASE);
027
028    /**
029     * Creates a SybaseDialect.
030     *
031     * @param connection Connection
032     */
033    public SybaseDialect(Connection connection) throws SQLException {
034        super(connection);
035    }
036
037    public boolean allowsAs() {
038        return false;
039    }
040
041    public boolean allowsFromQuery() {
042        return false;
043    }
044
045    public boolean requiresAliasForFromQuery() {
046        return true;
047    }
048}
049
050// End SybaseDialect.java