liberty-framework 6.0.79__py3-none-any.whl → 6.0.80__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.
- liberty/framework/database/base_dao.py +6 -1
- liberty/framework/public/frontend/assets/{index-Ciuwavhm.js → index-CTctOr6e.js} +186 -186
- liberty/framework/public/frontend/assets/{index-Ciuwavhm.js.map → index-CTctOr6e.js.map} +1 -1
- liberty/framework/public/frontend/assets/{index.es-CBlJRKZK-KXQnlo1G.js → index.es-BWaId62J-QcNr3x3o.js} +2 -2
- liberty/framework/public/frontend/assets/{index.es-CBlJRKZK-KXQnlo1G.js.map → index.es-BWaId62J-QcNr3x3o.js.map} +1 -1
- liberty/framework/public/frontend/index.html +1 -1
- {liberty_framework-6.0.79.dist-info → liberty_framework-6.0.80.dist-info}/METADATA +1 -1
- {liberty_framework-6.0.79.dist-info → liberty_framework-6.0.80.dist-info}/RECORD +12 -12
- {liberty_framework-6.0.79.dist-info → liberty_framework-6.0.80.dist-info}/WHEEL +0 -0
- {liberty_framework-6.0.79.dist-info → liberty_framework-6.0.80.dist-info}/entry_points.txt +0 -0
- {liberty_framework-6.0.79.dist-info → liberty_framework-6.0.80.dist-info}/licenses/LICENSE.md +0 -0
- {liberty_framework-6.0.79.dist-info → liberty_framework-6.0.80.dist-info}/top_level.txt +0 -0
|
@@ -310,6 +310,7 @@ class BaseDAO:
|
|
|
310
310
|
else:
|
|
311
311
|
# No rows: fallback to column names only
|
|
312
312
|
meta_data = [{"name": key.upper(), "type": "UNKNOWN"} for key in result.keys()]
|
|
313
|
+
|
|
313
314
|
|
|
314
315
|
return {"status": "success", "pool": self.config["pool_alias"], "rows": processed_rows, "rowCount": result.rowcount, "meta_data": meta_data}
|
|
315
316
|
|
|
@@ -345,7 +346,9 @@ class BaseDAO:
|
|
|
345
346
|
if val is None:
|
|
346
347
|
return "NULL" if self.config.get("replace_null") != "Y" else "' '"
|
|
347
348
|
if isinstance(val, str):
|
|
348
|
-
|
|
349
|
+
val = val.replace("'", "''") # escape quotes
|
|
350
|
+
val = val.replace(":", r"\:") # escape colon
|
|
351
|
+
return f"'{val}'"
|
|
349
352
|
return str(val)
|
|
350
353
|
|
|
351
354
|
# Format the array of records
|
|
@@ -369,6 +372,7 @@ class BaseDAO:
|
|
|
369
372
|
else:
|
|
370
373
|
value = value.replace("$$", "$$$$") # Escape dollar signs
|
|
371
374
|
value = value.replace("'", "''") # Escape single quotes
|
|
375
|
+
value = value.replace(":", r"\:") # Escape colon inside value
|
|
372
376
|
value = f"'{value}'" # Wrap in single quotes
|
|
373
377
|
|
|
374
378
|
# Replace #:VARIABLE# with VALUE or 'VALUE'
|
|
@@ -378,6 +382,7 @@ class BaseDAO:
|
|
|
378
382
|
# Replace :VARIABLE with VALUE or 'VALUE'
|
|
379
383
|
regex_string_colon = re.compile(rf"\:{name}\b", re.IGNORECASE)
|
|
380
384
|
statement = regex_string_colon.sub(str(value), statement)
|
|
385
|
+
|
|
381
386
|
|
|
382
387
|
|
|
383
388
|
# Open a session
|