doc: Fix typos in make_timestamp{,tz} examples
authorAlvaro Herrera
Mon, 19 Jan 2015 15:43:58 +0000 (12:43 -0300)
committerAlvaro Herrera
Mon, 19 Jan 2015 15:43:58 +0000 (12:43 -0300)
Pointed out by Alan Mogi (bug #12571)

doc/src/sgml/func.sgml

index 5e7b000da8f7f1e457a5c6c34a925a3ae6dae11d..d57243af4ed09ad5649265b1f504340227c44327 100644 (file)
@@ -6830,7 +6830,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
         
          Create timestamp from year, month, day, hour, minute and seconds fields
         
-        make_timestamp(1-23, 7, 15, 8, 15, 23.5)
+        make_timestamp(2013, 7, 15, 8, 15, 23.5)
         2013-07-15 08:15:23.5
        
 
@@ -6857,7 +6857,7 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
          and seconds fields. When timezone is not specified,
          then current time zone is used.
         
-        make_timestamp(1-23, 7, 15, 8, 15, 23.5)
+        make_timestamptz(2013, 7, 15, 8, 15, 23.5)
         2013-07-15 08:15:23.5+01