0 if there was an errorSqlBuilder.addCase
gda.types.SqlBuilderId addCase(gda.types.SqlBuilderId testExpr, gda.types.SqlBuilderId elseExpr, gda.types.SqlBuilderId[] whenArray, gda.types.SqlBuilderId[] thenArray)Creates a new CASE ... WHEN ... THEN ... ELSE ... END expression. The WHEN expression and the THEN expression IDs are taken from the when_array and then_array at the same index, for each index inferior to args_size.
Parameters
testExpr | the expression ID representing the test of the CASE, or 0 |
elseExpr | the expression ID representing the ELSE expression, or 0 |
whenArray | an array containing each WHEN expression ID, having at least args_size elements |
thenArray | an array containing each THEN expression ID, having at least args_size elements |
Returns
the ID of the new expression, or