Changeset 950


Ignore:
Timestamp:
Jan 2, 2019, 2:14:41 PM (8 months ago)
Author:
cito
Message:

Backport fixes in trunk to 5.0.x

Location:
branches/5.0.x
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0.x/docs/community/mailinglist.rst

    r710 r950  
    33
    44You can join
    5 `the mailing list <https://mail.vex.net/mailman/listinfo.cgi/pygresql>`_
     5`the mailing list <https://mail.vex.net/mailman/listinfo/pygresql>`_
    66to discuss future development of the PyGreSQL interface or if you have
    77questions or problems with PyGreSQL that are not covered in the
  • branches/5.0.x/docs/community/support.rst

    r710 r950  
    99
    1010**PyGreSQL**:
    11   Join `the PyGreSQL mailing list <https://mail.vex.net/mailman/listinfo.cgi/pygresql>`_
     11  Join `the PyGreSQL mailing list <https://mail.vex.net/mailman/listinfo/pygresql>`_
    1212  if you need help regarding PyGreSQL.
    1313
  • branches/5.0.x/docs/contents/changelog.rst

    r940 r950  
    22=========
    33
    4 Vesion 5.0.6 (to be released)
    5 -----------------------------
     4Vesion 5.0.7 (2019-mm-dd)
     5-------------------------
     6- Fixed a bug in parsing array subscript ranges (reported by Justin Pryzby).
     7
     8Vesion 5.0.6 (2018-07-29)
     9-------------------------
    610- This version officially supports the new Python 3.7.
    711- Correct trove classifier for the PostgreSQL License.
  • branches/5.0.x/docs/contents/pg/adaptation.rst

    r930 r950  
    308308
    309309However, we can add new typecast functions for the database types that are
    310 not supported by the C modul. Fore example, we can create a typecast function
     310not supported by the C module. For example, we can create a typecast function
    311311that casts items of the composite PostgreSQL type used as example in the
    312312previous section to instances of the corresponding Python class.
  • branches/5.0.x/docs/contents/pgdb/cursor.rst

    r934 r950  
    118118all parameter tuples or mappings found in the sequence *seq_of_parameters*.
    119119
    120 Parameters are bounded to the query using Python extended format codes,
     120Parameters are bound to the query using Python extended format codes,
    121121e.g. ``" ... WHERE name=%(name)s"``.
    122122
  • branches/5.0.x/pg.py

    r930 r950  
    972972    The cast functions get passed the string representation of a value in
    973973    the database which they need to convert to a Python object.  The
    974     passed string will never be None since NULL values are already be
    975     handled before the cast function is called.
     974    passed string will never be None since NULL values are already handled
     975    before the cast function is called.
    976976
    977977    Note that the basic types are already handled by the C extension.
  • branches/5.0.x/pgdb.py

    r901 r950  
    494494    The cast functions get passed the string representation of a value in
    495495    the database which they need to convert to a Python object.  The
    496     passed string will never be None since NULL values are already be
    497     handled before the cast function is called.
     496    passed string will never be None since NULL values are already handled
     497    before the cast function is called.
    498498    """
    499499
  • branches/5.0.x/pgmodule.c

    r933 r950  
    665665                        while (s != end && *s == ' ') ++s;
    666666                        if (s != end && (*s == '+' || *s == '-')) ++s;
    667                         if (s == end || *s <= '0' || *s >= '9') break;
     667                        if (s == end || *s < '0' || *s > '9') break;
    668668                        while (s != end && *s >= '0' && *s <= '9') ++s;
    669669                        if (s == end || *s++ != ':') break;
    670670                        if (s != end && (*s == '+' || *s == '-')) ++s;
    671                         if (s == end || *s <= '0' || *s >= '9') break;
     671                        if (s == end || *s < '0' || *s > '9') break;
    672672                        while (s != end && *s >= '0' && *s <= '9') ++s;
    673673                        if (s == end || *s++ != ']') break;
  • branches/5.0.x/tests/test_classic_functions.py

    r822 r950  
    203203        ('[-3:-1]={1,2,3}', int, [1, 2, 3]),
    204204        ('[+1:+3]={1,2,3}', int, [1, 2, 3]),
     205        ('[0:2]={1,2,3}', int, [1, 2, 3]),
     206        ('[7:9]={1,2,3}', int, [1, 2, 3]),
    205207        ('[]={1,2,3}', int, ValueError),
    206208        ('[1:]={1,2,3}', int, ValueError),
Note: See TracChangeset for help on using the changeset viewer.