##// END OF EJS Templates
Use single quotes in sql string literal (#13968)...
Use single quotes in sql string literal (#13968) the SQL spec requires that string literals use single quotes and column references (or other identifiers) use double quotes. sqlite permits the use of double quotes for string literals in "unambiguous cases". For some reason, its understanding of what constitutes unambiguous has changed recently - I'm on FreeBSD 14.0-CURRENT with sqlite 3.41.0 - and attempting to do anything with ipython throws a very strange sqlite operation error: ``` [+] ~% ipython --version (test) audrey@daisy [12:18:02 AM] 8.11.0 [+] ~% ipython (test) audrey@daisy [12:18:04 AM] [TerminalIPythonApp] ERROR | Failed to create history session in /usr/home/audrey/.ipython/profile_default/history.sqlite. History will not be saved. Traceback (most recent call last): File "/usr/home/audrey/.virtualenvs/test/lib/python3.9/site-packages/IPython/core/history.py", line 545, in __init__ self.new_session() File "/usr/home/audrey/.virtualenvs/test/lib/python3.9/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/usr/home/audrey/.virtualenvs/test/lib/python3.9/site-packages/IPython/core/history.py", line 60, in only_when_enabled return f(self, *a, **kw) File "/usr/home/audrey/.virtualenvs/test/lib/python3.9/site-packages/IPython/core/history.py", line 570, in new_session cur = conn.execute("""INSERT INTO sessions VALUES (NULL, ?, NULL, sqlite3.OperationalError: no such column: Python 3.9.16 (main, Feb 28 2023, 01:31:45) Type 'copyright', 'credits' or 'license' for more information IPython 8.11.0 -- An enhanced Interactive Python. Type '?' for help. ``` This patch fixes it. idk if this constitutes a bug in sqlite3, but this is, I guess, more correct.

File last commit:

r27520:b2f71a87
r28168:9a5baf06 merge
Show More
appveyor.yml
27 lines | 752 B | text/x-yaml | YamlLexer
Srinivas Reddy Thatiparthy
Add appveyor.yml
r23123 build: false
Srinivas Reddy Thatiparthy
add fail fast
r23206 matrix:
fast_finish: true # immediately finish build once one of the jobs fails.
Srinivas Reddy Thatiparthy
Add appveyor.yml
r23123
environment:
Nikita Kniazev
CI: Colorize and widen Pytest summary...
r26992 global:
Nikita Kniazev
Add Python 3.10 CI runners
r27062 APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022'
luz paz
Fix various typos...
r27520 COLUMNS: 120 # Appveyor web viewer window width is 130 chars
Nikita Kniazev
CI: Colorize and widen Pytest summary...
r26992
Srinivas Reddy Thatiparthy
Add appveyor.yml
r23123 matrix:
Nicholas Bollweg
add py37/38 for appveyor
r25220 - PYTHON: "C:\\Python38"
PYTHON_VERSION: "3.8.x"
PYTHON_ARCH: "32"
Srinivas Reddy Thatiparthy
Add appveyor.yml
r23123 init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
install:
Matthias Bussonnier
Install IPython using setup.py
r23124 - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
Matthias Bussonnier
try to fix app-veyor
r27489 - python -m pip install --upgrade setuptools 'pip<22'
Nikita Kniazev
Move optional dependencies to a separate set
r27104 - pip install pytest-cov
- pip install -e .[test_extra]
Srinivas Reddy Thatiparthy
Add appveyor.yml
r23123 test_script:
Nikita Kniazev
CI: Colorize and widen Pytest summary...
r26992 - pytest --color=yes -ra --cov --cov-report=xml
Nikita Kniazev
CI: Upload coverage from Appveyor
r26946 on_finish:
Nikita Kniazev
CI: Switch to the new codecov uploader...
r26969 - curl -Os https://uploader.codecov.io/latest/windows/codecov.exe
- codecov -e PYTHON_VERSION,PYTHON_ARCH