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 +1 -1
- jaaql/db/db_pg_interface.py +12 -8
- {jaaql_middleware_python-5.3.1.dist-info → jaaql_middleware_python-5.3.2.dist-info}/METADATA +1 -1
- {jaaql_middleware_python-5.3.1.dist-info → jaaql_middleware_python-5.3.2.dist-info}/RECORD +7 -7
- {jaaql_middleware_python-5.3.1.dist-info → jaaql_middleware_python-5.3.2.dist-info}/WHEEL +0 -0
- {jaaql_middleware_python-5.3.1.dist-info → jaaql_middleware_python-5.3.2.dist-info}/licenses/LICENSE.txt +0 -0
- {jaaql_middleware_python-5.3.1.dist-info → jaaql_middleware_python-5.3.2.dist-info}/top_level.txt +0 -0
jaaql/constants.py
CHANGED
jaaql/db/db_pg_interface.py
CHANGED
|
@@ -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
|
|
332
|
-
#
|
|
333
|
-
#
|
|
334
|
-
#
|
|
335
|
-
#
|
|
336
|
-
#
|
|
337
|
-
# permits several commands.
|
|
338
|
-
|
|
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)
|
{jaaql_middleware_python-5.3.1.dist-info → jaaql_middleware_python-5.3.2.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jaaql-middleware-python
|
|
3
|
-
Version: 5.3.
|
|
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=
|
|
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=
|
|
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.
|
|
70
|
-
jaaql_middleware_python-5.3.
|
|
71
|
-
jaaql_middleware_python-5.3.
|
|
72
|
-
jaaql_middleware_python-5.3.
|
|
73
|
-
jaaql_middleware_python-5.3.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
{jaaql_middleware_python-5.3.1.dist-info → jaaql_middleware_python-5.3.2.dist-info}/top_level.txt
RENAMED
|
File without changes
|