/
NikolayIvkin
/
sqlancer2
Обзор
Документация
Войти
/
NikolayIvkin
/
sqlancer2
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/sqlancer/postgres/ast/PostgresJoin.java
49 строк
1 KB
nukoyluoglu
Remove PostgresTableReference class, use createSubquery function to add subquerie to joinss
23 июл 2020, 21:45
23 июл 2020, 21:45
4f786d7
Код
Авторство
О чём код?
package sqlancer.postgres.ast; import sqlancer.Randomly; import sqlancer.postgres.PostgresSchema.PostgresDataType; public class PostgresJoin implements PostgresExpression { public enum PostgresJoinType { INNER, LEFT, RIGHT, FULL, CROSS; public static PostgresJoinType getRandom() { return Randomly.fromOptions(values()); } } private final PostgresExpression tableReference; private final PostgresExpression onClause; private final PostgresJoinType type; public PostgresJoin(PostgresExpression tableReference, PostgresExpression onClause, PostgresJoinType type) { this.tableReference = tableReference; this.onClause = onClause; this.type = type; } public PostgresExpression getTableReference() { return tableReference; } public PostgresExpression getOnClause() { return onClause; } public PostgresJoinType getType() { return type; } @Override public PostgresDataType getExpressionType() { throw new AssertionError(); } @Override public PostgresConstant getExpectedValue() { throw new AssertionError(); } }