jaaql-middleware-python 5.3.1__py3-none-any.whl → 5.3.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
jaaql/constants.py CHANGED
@@ -218,5 +218,5 @@ ROLE__dba = "dba"
218
218
 
219
219
  PROTOCOL__postgres = "postgresql://"
220
220
 
221
- VERSION = "5.3.1"
221
+ VERSION = "5.3.2"
222
222
 
@@ -328,14 +328,18 @@ class DBPGInterface(DBInterface):
328
328
  if pending_auth:
329
329
  auth_cursor = conn.jaaql_raw_cursor()
330
330
  try:
331
- # Pipeline mode forces the extended protocol on every execute, and the
332
- # extended protocol rejects a multi-command string ("cannot insert
333
- # multiple commands into a prepared statement"). Only pipeline
334
- # single-command queries; a multi-command query (install scripts,
335
- # interpreted/canned SQL run during a bump) falls back to sequential
336
- # execution, where the main query runs under the simple protocol that
337
- # permits several commands.
338
- if PIPELINE_SUPPORTED and _statement_is_preparable(query):
331
+ # Pipeline mode is unsafe for two kinds of statement, so restrict it to
332
+ # single-command queries on transactional (non-autocommit) connections;
333
+ # everything else falls back to sequential execution:
334
+ # - it forces the extended protocol on every execute, which rejects a
335
+ # multi-command string ("cannot insert multiple commands into a
336
+ # prepared statement"); the sequential fallback runs the main query
337
+ # under the simple protocol that permits several commands.
338
+ # - it wraps statements in an implicit transaction, which statements
339
+ # that cannot run in a transaction block (CREATE DATABASE, VACUUM,
340
+ # CREATE INDEX CONCURRENTLY, ...) reject. JAAQL runs those with
341
+ # autocommit=True, so skipping the pipeline there keeps them standalone.
342
+ if PIPELINE_SUPPORTED and _statement_is_preparable(query) and not conn.autocommit:
339
343
  with conn.pipeline():
340
344
  for statement in pending_auth:
341
345
  auth_cursor.execute(statement)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jaaql-middleware-python
3
- Version: 5.3.1
3
+ Version: 5.3.2
4
4
  Summary: The jaaql package, allowing for rapid development and deployment of RESTful HTTP applications
5
5
  Home-page: https://github.com/JAAQL/JAAQL-middleware-python
6
6
  Author: Software Quality Measurement and Improvement bv
@@ -1,6 +1,6 @@
1
1
  jaaql/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  jaaql/config_constants.py,sha256=puoR6jfbXw8oXXEfbYNn2ysGwgiGTyuDjOj7F8acsTE,470
3
- jaaql/constants.py,sha256=DhHVNMagAP6vunKC977tdltQbdWyE2C1m2jBA7-HO-A,7355
3
+ jaaql/constants.py,sha256=sfY4dvRV-sRuMwo6UcqD37XKFLPYNSzRD2VjM8CQNAs,7355
4
4
  jaaql/generated_constants.py,sha256=pxmpTux7rrjJH6iqLb-R8RKJ4t0CeoGdnspjH5DiWgU,11327
5
5
  jaaql/jaaql.py,sha256=bfiEW9A8PlZIVjDJd_LOhCLBL8flc_f7w0umR6EWbU4,6614
6
6
  jaaql/patch.py,sha256=VE4B6jA492NCIxNIewbynh92jxVulmRFtB9hNEe6q94,149
@@ -10,7 +10,7 @@ jaaql/config/config-test.ini,sha256=ap9OFqCCbYdWqmUKq0p9GD1IkM4CzeTXDV5gbQGQZoQ,
10
10
  jaaql/config/config.ini,sha256=o1orXNYRFgf09MKzZBQ3v0oMzWn7N6KwvX5YV0WJtns,321
11
11
  jaaql/db/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  jaaql/db/db_interface.py,sha256=n4pwRHeGpkbmTOvZDe8VvqFf2l4QsE9GbhUBzW335m0,7702
13
- jaaql/db/db_pg_interface.py,sha256=xhNFJZd8elQgXEMlgaxEom9a2KgbtqCsPlMbH_wFYYk,19143
13
+ jaaql/db/db_pg_interface.py,sha256=3w7_uMUmZ7RedqIQ_hZry5HDtfUK9kCdazHra3TYuDQ,19597
14
14
  jaaql/db/db_utils.py,sha256=xZCdtWT9semzLL-NAiwMFx_38Wv96BBv60pfPYNDnCc,7761
15
15
  jaaql/db/db_utils_no_circ.py,sha256=WLhk6EwsnTdLGUAjq3RZBH3FzgwEumh45A24WWysWmQ,4666
16
16
  jaaql/documentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -66,8 +66,8 @@ jaaql/utilities/options.py,sha256=75M7-oSeY4wmHGz3-su_c36yf_Csv9HxvTG7aRlGR0A,49
66
66
  jaaql/utilities/utils.py,sha256=nVYVhuHtWSjdaJaXe9eC1Usja56NO-V9SoBIlcHAK8Q,5166
67
67
  jaaql/utilities/utils_no_project_imports.py,sha256=YwcskR15dAqKdEiuF8zGx-tzwWkclSGil_zm_qZ8ylU,4626
68
68
  jaaql/utilities/vault.py,sha256=DudyQNtMtaRLL71IGQX0AI16Tg1id98BHTCQPyUNkmE,2243
69
- jaaql_middleware_python-5.3.1.dist-info/licenses/LICENSE.txt,sha256=wr50eN0TnkrCSuNwyiI81FLZqmrW3q0JqRlVVQIrGA0,18134
70
- jaaql_middleware_python-5.3.1.dist-info/METADATA,sha256=Zf6gk_QDs_yHZRWltNnQnEnTvsJ6JH8mUhoNHcccH60,1976
71
- jaaql_middleware_python-5.3.1.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
72
- jaaql_middleware_python-5.3.1.dist-info/top_level.txt,sha256=k5aKVQy77bPyfyNHITvo5m3FqdSAiiXbjT5S9D9KzgU,6
73
- jaaql_middleware_python-5.3.1.dist-info/RECORD,,
69
+ jaaql_middleware_python-5.3.2.dist-info/licenses/LICENSE.txt,sha256=wr50eN0TnkrCSuNwyiI81FLZqmrW3q0JqRlVVQIrGA0,18134
70
+ jaaql_middleware_python-5.3.2.dist-info/METADATA,sha256=cN4zk-t4FHTjS1N16a6CldkX4G5BqynXlvWUp2qjRUU,1976
71
+ jaaql_middleware_python-5.3.2.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
72
+ jaaql_middleware_python-5.3.2.dist-info/top_level.txt,sha256=k5aKVQy77bPyfyNHITvo5m3FqdSAiiXbjT5S9D9KzgU,6
73
+ jaaql_middleware_python-5.3.2.dist-info/RECORD,,