Skip to content

Commit

Permalink
#87 updated OFT
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbraun committed Aug 11, 2020
1 parent 2c10d24 commit 14f3d6e
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions doc/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ Needs: impl, utest
Tags: Select Statement Builder

### Using Literal Values
`dsn~literal-values~1`
`dsn~literal-values~2`

Forwarded from requirements.

Covers:

* `req~literal-values~1`
* `req~literal-values~2`

Needs: impl, utest

Expand Down
2 changes: 1 addition & 1 deletion doc/system_requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Covers:
Needs: dsn

#### Literal Values
`req~literal-values~1`
`req~literal-values~2`

ESB supports the following literal values: `default`, `double`, `float`, `integer`, `long`, `null`, `string`, `BigDecimal`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* This class represents BigDecimal literals.
*/
// [impl->dsn~literal-values~1]
// [impl->dsn~literal-values~2]
public class BigDecimalLiteral extends AbstractValueExpression {
private final BigDecimal literal;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/exasol/sql/expression/DefaultValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* This is for example used in updates embedded into {@code MERGE} statements.
* </p>
*/
// [impl->dsn~literal-values~1]
// [impl->dsn~literal-values~2]
public final class DefaultValue extends AbstractValueExpression {
private static final DefaultValue instance = new DefaultValue();

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/exasol/sql/expression/DoubleLiteral.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This class represents double literals.
*/
// [impl->dsn~literal-values~1]
// [impl->dsn~literal-values~2]
public class DoubleLiteral extends AbstractValueExpression {
private final double value;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/exasol/sql/expression/FloatLiteral.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This class represents float literals.
*/
// [impl->dsn~literal-values~1]
// [impl->dsn~literal-values~2]
public class FloatLiteral extends AbstractValueExpression {
private final float value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This class represents integer literals.
*/
// [impl->dsn~literal-values~1]
// [impl->dsn~literal-values~2]
public final class IntegerLiteral extends AbstractValueExpression {
private final int value;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/exasol/sql/expression/LongLiteral.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This class represents long literals.
*/
// [impl->dsn~literal-values~1]
// [impl->dsn~literal-values~2]
public class LongLiteral extends AbstractValueExpression {
private final long value;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/exasol/sql/expression/NullLiteral.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This class represents a null literal.
*/
// [impl->dsn~literal-values~1]
// [impl->dsn~literal-values~2]
public final class NullLiteral extends AbstractValueExpression {
private static final NullLiteral instance = new NullLiteral();

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/exasol/sql/expression/StringLiteral.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This class represents string literals (or character literals in SQL terms).
*/
// [impl->dsn~literal-values~1]
// [impl->dsn~literal-values~2]
public final class StringLiteral extends AbstractValueExpression {
private final String literal;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import org.junit.jupiter.api.Test;

// [utest->dsn~literal-values~1]
// [utest->dsn~literal-values~2]
class DoubleLiteralTest {
@Test
void testGetValue() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import org.junit.jupiter.api.Test;

// [utest->dsn~literal-values~1]
// [utest->dsn~literal-values~2]
class FloatLiteralTest {
@Test
void testGetValue() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import org.junit.jupiter.api.Test;

// [utest->dsn~literal-values~1]
// [utest->dsn~literal-values~2]
class LongLiteralTest {
@Test
void testGetValue() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import org.junit.jupiter.api.Test;

// [utest->dsn~literal-values~1]
// [utest->dsn~literal-values~2]
class TestBigDecimalLiteral {
@Test
void testGetValue() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import org.junit.jupiter.api.Test;

// [utest->dsn~literal-values~1]
// [utest->dsn~literal-values~2]
class TestIntegerLiteral {
@Test
void testGetValue() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import org.junit.jupiter.api.Test;

// [utest->dsn~literal-values~1]
// [utest->dsn~literal-values~2]
class TestStringLiteral {
@Test
void testGetToString() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ void testComparisonOperatorsWithColumnReference() {
);
}

//// [utest->dsn~literal-values~1]
//// [utest->dsn~literal-values~2]
@Test
void testBigDecimalLiteralComparison() {
final BooleanExpression expression = eq(BigDecimalLiteral.of(BigDecimal.TEN),
Expand Down

0 comments on commit 14f3d6e

Please sign in to comment.