- Added support for the PREVIEW DDL SQL statement.
- Support cryptography versions greater than 42.0.0.
- Fixed an issue that returned -1 rows modified.
- Fixed the handling of an invalid DSN on the pyocient CLI.
- Formatted Unicode characters in JSON output.
- Fixed an issue where not all warnings were reported.
- Added the
messages
attribute to the cursor. - Improved parameter expansion.
- Supported
loglevel
andlogfile
parameters on DSNs. - Preserved the Connection object for reconnects.
- Fixed ending SSO sessions when you close the connection.
- Pinned the cryptography package to a version earlier than 42.0.0 for stability purposes.
- Added OIDC single sign on (SSO).
- Added the
performance mode
command. - Enabled the display of nulls as NULL when using the table format.
- Set the command-line default fetch size to 30000.
- Fixed the implementation of the
set serviceclass
command. - Changed
pyocient.Warning
to be a subclass of the PythonWarning
class. - Added the
set printuuid on
command. - Added the
--version
option at the command line. - Set the TCP
keepalive
options on connections. - Added a valid error message when the system rejects a connection without SSL encryption.
- The
TypeCodes
class has been changed to a Python®IntEnum
. - GIS types _STPoint, _STLinestring, and _STPolygon have been renamed to STPoint, STLinestring, and STPolygon, respectively.
- The
user
andpassword
fields have been removed from theConnection
object. This object no longer stores these fields. - You can pass the
security_token
from another connection to theconnect
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 PythonSyntaxException
, has been removed. pyocient.version
has been removed in favor of the more standardpyocient.__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
, andPSO
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
, andMAX_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
andgoogle-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
, andMAX_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
, andset
commands - Added support for starting without a DSN