data_instance.sql 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* postgres can not */
  2. select Bool("true");
  3. select Bool("FalsE");
  4. select Int8("-128");
  5. select Int8("127");
  6. select Uint8("0");
  7. select Uint8("255");
  8. select Int16("-32768");
  9. select Int16("32767");
  10. select Uint16("0");
  11. select Uint16("65535");
  12. select Int32("-2147483648");
  13. select Int32("2147483647");
  14. select Uint32("0");
  15. select Uint32("4294967295");
  16. select Int64("-9223372036854775808");
  17. select Int64("9223372036854775807");
  18. select Uint64("0");
  19. select Uint64("18446744073709551615");
  20. select Float("0");
  21. select Float("1");
  22. select Float("-1e30");
  23. select Float("-inf");
  24. select Float("+inf");
  25. select Float("nan");
  26. select Double("0");
  27. select Double("1");
  28. select Double("-1e300");
  29. select Double("-inf");
  30. select Double("+inf");
  31. select Double("nan");
  32. select String("foo\xffbar");
  33. select Utf8("привет");
  34. select Yson("<a=1>[3;%false]");
  35. select Json(@@{"a":1,"b":null}@@);
  36. select cast(Date("2000-01-01") as string);
  37. select cast(Datetime("2000-01-01T01:02:03Z") as string);
  38. select cast(Timestamp("2000-01-01T01:02:03.4Z") as string);
  39. select cast(Interval("P1DT12H") as string);
  40. select TZDATE("2010-07-01,Europe/Moscow");
  41. select TZDATE("2010-07-01,America/Los_Angeles");
  42. select TZDATETIME("2010-07-01T00:00:00,Europe/Moscow");
  43. select TZTIMESTAMP("2010-07-01T00:00:00,America/Los_Angeles");
  44. select TZTIMESTAMP("2010-07-01T12:00:00.123456,Europe/Moscow");
  45. select Uuid('550e8400-e29b-41d4-a716-446655440000');