From: Daniele Varrazzo Date: Wed, 17 Mar 2021 00:08:08 +0000 (+0100) Subject: Drop outdated change behaviour from docs X-Git-Tag: 3.0.dev0~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6caf57dda52d97d574072f0d24f70826ee01e663;p=thirdparty%2Fpsycopg.git Drop outdated change behaviour from docs --- diff --git a/docs/from_pg2.rst b/docs/from_pg2.rst index ca3d87506..394105b9c 100644 --- a/docs/from_pg2.rst +++ b/docs/from_pg2.rst @@ -53,17 +53,6 @@ works for an empty list, whereas an empty tuple would have resulted in an error. -.. _diff-numbers: - -``int`` is stricter -------------------- - -Operations involving numbers may fail if the number is passed to a function or -operator and PostgreSQL expects a :sql:`integer` and not a :sql:`bigint`. -Examples may be :sql:`date + int`, :sql:`jsonb -> int`. In this case you -should use an :sql:`::int` cast or the `psycopg3.types.Int4` wrapper. - - .. _diff-adapt: Different adaptation system