cast_variant.sql 282 B

123456789101112
  1. /* postgres can not */
  2. /* syntax version 1 */
  3. $a = AsEnum("a");
  4. $b = AsEnum("b");
  5. $c = AsEnum("c");
  6. $d = AsEnum("d");
  7. $t = TypeOf([Just($a), Just($b), just($c)]);
  8. select CAST([just($a), just($b), just($d)] AS $t);
  9. $t0 = TypeOf([Just($a), Just($b)]);
  10. select CAST([$c, $d] AS $t0);