]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Disallow negative strides in date_bin()
authorJohn Naylor <john.naylor@postgresql.org>
Wed, 28 Jul 2021 15:22:58 +0000 (11:22 -0400)
committerJohn Naylor <john.naylor@postgresql.org>
Wed, 28 Jul 2021 16:11:33 +0000 (12:11 -0400)
commitfc0d9b8c224ff6b84113cefdca1ba9dde879d863
tree01e9723b8876d1af46c57d4cb6cc76da105f08e4
parent5a8a9be08307a1c06fbed4510667de6b4f40fe56
Disallow negative strides in date_bin()

It's not clear what the semantics of negative strides would be, so throw
an error instead.

Per report from Bauyrzhan Sakhariyev

Reviewed-by: Tom Lane, Michael Paquier
Discussion: https://www.postgresql.org/message-id/CAKpL73vZmLuFVuwF26FJ%2BNk11PVHhAnQRoREFcA03x7znRoFvA%40mail.gmail.com
Backpatch to v14
doc/src/sgml/func.sgml
src/backend/utils/adt/timestamp.c
src/test/regress/expected/timestamp.out
src/test/regress/expected/timestamptz.out
src/test/regress/sql/timestamp.sql
src/test/regress/sql/timestamptz.sql