~ubuntu-branches/debian/sid/sqlalchemy/sid

« back to all changes in this revision

Viewing changes to lib/sqlalchemy/dialects/oracle/cx_oracle.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2014-06-27 20:17:13 UTC
  • mfrom: (1.4.28)
  • Revision ID: package-import@ubuntu.com-20140627201713-g6p1kq8q1qenztrv
Tags: 0.9.6-1
* New upstream release
* Remove Python 3.X build tag files, thanks to Matthias Urlichs for the
  patch (closes: #747852)
* python-fdb isn't in the Debian archive yet so default dialect for firebird://
  URLs is changed to obsolete kinterbasdb, thanks to Russell Stuart for the
  patch (closes: #752145)

Show diffs side-by-side

added added

removed removed

Lines of Context:
255
255
locale.  Under OCI_, this is controlled by the NLS_LANG
256
256
environment variable. Upon first connection, the dialect runs a
257
257
test to determine the current "decimal" character, which can be
258
 
a comma "," for european locales. From that point forward the
 
258
a comma "," for European locales. From that point forward the
259
259
outputtypehandler uses that character to represent a decimal
260
260
point. Note that cx_oracle 5.0.3 or greater is required
261
261
when dealing with numerics with locale settings that don't use
499
499
                    if dbtype is None:
500
500
                        raise exc.InvalidRequestError(
501
501
                                    "Cannot create out parameter for parameter "
502
 
                                    "%r - it's type %r is not supported by"
 
502
                                    "%r - its type %r is not supported by"
503
503
                                    " cx_oracle" %
504
504
                                    (bindparam.key, bindparam.type)
505
505
                                    )
741
741
 
742
742
    def _detect_decimal_char(self, connection):
743
743
        """detect if the decimal separator character is not '.', as
744
 
        is the case with european locale settings for NLS_LANG.
 
744
        is the case with European locale settings for NLS_LANG.
745
745
 
746
746
        cx_oracle itself uses similar logic when it formats Python
747
747
        Decimal objects to strings on the bind side (as of 5.0.3),