Skip to content

Commit

Permalink
Update h2Extension1_4_200.pure
Browse files Browse the repository at this point in the history
  • Loading branch information
gs-ssh16 authored Nov 24, 2023
1 parent d447ca4 commit 7ad9198
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,7 @@ function <<access.private>> meta::relational::functions::sqlQueryToString::h2::v
a: SemiStructuredArrayElementAccess[1] | semiStructuredArrayElementAccessForH2($processedOperand, $a.index->cast(@Literal).value->toString())
]);

if ($s.returnType == String, | 'cast(' + $elementAccess + ' as varchar)', |
if ($s.returnType == Boolean, | 'cast(' + $elementAccess + ' as boolean)', |
if ($s.returnType == Float, | 'cast(' + $elementAccess + ' as float)', |
if ($s.returnType == Integer, | 'cast(' + $elementAccess + ' as integer)', |
if ($s.returnType == StrictDate, | 'cast(' + $elementAccess + ' as date)', |
if ($s.returnType->isNotEmpty() && $s.returnType->toOne()->_subTypeOf(Date), | 'cast(' + $elementAccess + ' as timestamp)', |
if ($s.returnType->isNotEmpty() && $s.returnType->toOne()->instanceOf(Enumeration), | 'cast(' + $elementAccess + ' as varchar)', |
$elementAccess)))))));
$elementAccess->castToReturnTypeForSemiStructuredData($s.returnType);
}

function <<access.private>> meta::relational::functions::sqlQueryToString::h2::v1_4_200::processJoinStringsOperationForH2(js:JoinStrings[1], sgc:SqlGenerationContext[1]): String[1]
Expand Down

0 comments on commit 7ad9198

Please sign in to comment.