Skip to content

Commit

Permalink
Minor formatting improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
vogti committed Oct 19, 2024
1 parent 744ffcd commit 74d4be5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2137,7 +2137,7 @@ public static PolyBoolean isNotFalse( PolyBoolean b ) {
* NULL → NULL, FALSE → TRUE, TRUE → FALSE.
*/
public static PolyBoolean not( PolyBoolean b ) {
return b == null ? PolyBoolean.of( null ): PolyBoolean.of( !b.value );
return b == null ? PolyBoolean.of( null ) : PolyBoolean.of( !b.value );
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ public boolean isNumber() {
public PolyNumber asNumber() {
if ( isNumber() ) {
return (PolyNumber) this;
}else if( isString() ){
} else if ( isString() ) {
return PolyFloat.convert( this.asString() );
}
throw cannotParse( this, PolyNumber.class );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1498,6 +1498,7 @@ public void testQ14() throws SQLException {
}
}


@Test
public void testCast() throws SQLException {
try ( JdbcConnection polyphenyDbConnection = new JdbcConnection( true ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.polypheny.db.languages.QueryLanguage;
import org.polypheny.db.prisminterface.PIClient;
import org.polypheny.db.prisminterface.statementProcessing.StatementProcessor;
import org.polypheny.db.type.PolyType;
import org.polypheny.prism.ParameterMeta;

@Setter
Expand All @@ -33,6 +32,7 @@ public abstract class PIPreparedStatement extends PIStatement implements Signatu
protected List<ParameterMeta> parameterMetas;
protected List<AlgDataType> parameterPolyTypes;


public List<ParameterMeta> getParameterMetas() {
if ( parameterMetas == null ) {
StatementProcessor.prepare( this );
Expand Down

0 comments on commit 74d4be5

Please sign in to comment.