Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Conversation

KellerKev
Copy link
Owner

No description provided.

valq7711 and others added 30 commits May 30, 2021 00:47
* introduce CTE+RECURSIVE

* remove unused

* allow usage cte in join/left

* allow lambda-argument for  (to provide single statement cte+recursive), add test

* fix dialects (with_cte)

* enforce test subselect

* revert
Fixes for the following errors:

>>> from gluon.dal import DAL
>>> db=DAL('oracle://***/***@****:1521/***',auto_import=True, db_codec='latin-1')

Traceback (most recent call last):
  File "*****/web2py/gluon/packages/dal/pydal/base.py", line 507, in __init__
    self._adapter = adapter(**kwargs)
  File "****/web2py/gluon/packages/dal/pydal/adapters/__init__.py", line 41, in __call__
    obj = super(AdapterMeta, cls).__call__(*args, **kwargs)
  File "****/web2py/gluon/packages/dal/pydal/adapters/base.py", line 424, in __init__
    super(SQLAdapter, self).__init__(*args, **kwargs)
  File "*****/web2py/gluon/packages/dal/pydal/adapters/base.py", line 86, in __init__
    self._initialize_()
TypeError: _initialize_() missing 1 required positional argument: 'do_connect'


>>> row = db.executesql(sql, as_dict=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/****/web2py/gluon/packages/dal/pydal/base.py", line 878, in executesql
    adapter.execute(query)
  File "/****/web2py/gluon/packages/dal/pydal/adapters/__init__.py", line 69, in wrap
    return f(*args, **kwargs)
  File "/****/web2py/gluon/packages/dal/pydal/adapters/oracle.py", line 51, in execute
    i = 1
AttributeError: 'Oracle' object has no attribute 'REGEX_CLOB'
* Only use TextIOWrapper if needed

Fix the exception when TextIOWrapper  is used twice.  Happens if IO stream have to be converted before, for instance when CSV file are uploaded dynamically.

* Revert fied pikle raw

* Re-apply fix pikkle_row

Re-apply the pickle_row fix for the PR (isolation of the TextIOWrapper change)

* Remove additioal space

* Reduce line length  for csv reader 

Address Review comment , line was too long,I shortened it so.
* Fix appveyor fails due to wrong get-pip url

* use DownloadFile instead of Start-FileDownload

* fix get-pip version specific url
Co-authored-by: Kevin Keller <kevin.keller@snowflake,com>
Co-authored-by: DANIELE SINIBALDI <dsinibaldi@invallee.it>
There are small typos in:
- pydal/adapters/google.py
- pydal/connection.py
- pydal/validators.py
- tests/nosql.py

Fixes:
- Should read `inputted` rather than `inputed`.
- Should read `declaration` rather than `declartion`.
- Should read `connections` rather than `connectons`.
- Should read `comparison` rather than `comparsion`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
When using a py4web grid with Select Widget and choosing only one option while multiple = True, the form gives a validation error.
This is because in this case, the `value` passed to validate is an integer, while `theset` is a list of strings. By explicitly converting `v` to a string, saving the multiple select works again. I hope this does not break any other logic in the module.
mdipierro and others added 30 commits May 26, 2025 13:53
I'm not sure that there is no side-effects, please check it carefully ;-)
fix query builder regex for queries with quoted values
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.