Release Notes
pyocient Release Notes
- The TypeCodes class has been changed to a IntEnum.
- GIS types _STPoint, _STLinestring, and _STPolygon have been renamed to STPoint, STLinestring, and STPolygon, respectively.
- The user and password fields have been removed from the Connection object. This object no longer stores these fields.
- You can pass the security_token from another connection to the connect function.
- The Session object has been removed.
- The custom_type_to_json function has been moved into the pyocient API to allow the consistent conversion of the result set to the JSON format.
- The patch portion of the pyocient version is sent to and logged in the database.
- The --nooutput command-line parameter does not throw a Python exception.
- The local variable 'return_code' referenced before assignment error has been fixed.
- Added the --rows argument to the command-line program to load the result set in batches
- Packaging has been significantly refactored to match Python® packaging standards.
- Python context manager support has been added to connections and cursors.
- Python type annotations have been added to the pyocient API.
- Fixed the command-line interface (CLI) to return a non-zero code for statements that fail.
- CLI output has been standardized to either go to the output file or standard output (stdout).
- The option to echo statements has been added as a command-line option.
- The pyocient.SyntaxError exception, which conflicted with the built-in Python SyntaxException, has been removed.
- pyocient.version has been removed in favor of the more standard pyocient.__version__.
- The dependency on protobuf has been upgraded from >=3.12.0, <=3.19.1 to >=3.20.0, <=4.22.0.
- Fixed an error that occurs when you do not specify the host parameter in the connect() API.
- Updated pyocient dependencies to eliminate some unused dependencies and tighten the dependencies on protobuf and dsnparse.
- Fixed bug that left Cursor.rowcount unset after Data Manipulation Language (DML) query execution.
- The cryptography package requirement of version 36 or lower is no longer required.
- Added --nohistory command-line option. The history file does not store commands from the session. Added ignorespace option to command-line history. The history file omits lines that begin with a white space character.
- Added a link to the release notes to the package description.
- Fixed error in the parameter substitution docstring.
- Added support for SERVICECLASS, ADJUSTFACTOR, ADJUSTTIME, and PSO query settings.
- Added support for the SHOW command.
- Added support for the CANCEL TASK command.
- Removed support for PRIORITY_ADJUSTMENT_FACTOR, PRIORITY_ADJUSTMENT_TIME, MIN_PRIORITY, and MAX_PRIORITY query settings.
- Deprecate support for the CHECK DATA command.
- Fixed output of binary types at the command line.
- Added CSV output support
- Updated cryptography package dependency from <3.4 to <=36.0
- Updated cffi and google-auth dependencies
- Improved decoding performance by caching the decoders
- Added formal STPoint, STLinestring, and STPolygon classes rather than using tuples and lists
- Added support for PRIORITY_ADJUSTMENT_FACTOR, PRIORITY_ADJUSTMENT_TIME, MIN_PRIORITY, and MAX_PRIORITY query settings.
- Enabled the handling of invalid DNS names received from the database
- Fixed crash on invalid UTF-8 characters received from the database
- Fixed a bug related to specifying the user through the connect API
- Standardized Python(R) code formatting
- Updated handling of the force option on connections for accuracy
- Added additional debug logging to the redirection of connection
- Updated the redirect logic for accuracy
- Added multiple host support to the DSN
- Removed --tables, --systables, and --views command-line options
- Added support for the source, connect to, and set commands
- Added support for starting without a DSN
Updated 11 Jan 2024
Did this page help you?