[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2016-09-06 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the patch, Alex!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2016-09-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 91d3022b3f03 by Berker Peksag in branch '3.5':
Issue #21250: Add tests for SQLite's ON CONFLICT clause
https://hg.python.org/cpython/rev/91d3022b3f03

New changeset db2bedd5c34a by Berker Peksag in branch 'default':
Issue #21250: Merge from 3.5
https://hg.python.org/cpython/rev/db2bedd5c34a

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2016-06-12 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the patch Alex. Some quick review comments:

* We need to skip SqliteOnConflictTests if the installed sqlite3 doesn't 
support the feature

* There is no need to duplicate https://www.sqlite.org/lang_conflict.html in 
every test. You can add it to SqliteOnConflictTests docstring.

* Instead of ``try:  except sqlite.IntegrityError: `` we can 
make sure that sqlite.IntegrityError is raised by using assertRaises (like you 
did in CheckOnConflictFail.)

* The following pattern can be replaced with a list comprehension:

  +returned_rows = []
  +for row in self.cu:
  +returned_rows.append(row)

--
nosy: +berker.peksag
stage: needs patch -> patch review
versions: +Python 3.6 -Python 2.7, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2015-08-19 Thread Gerhard Häring

Changes by Gerhard Häring g...@ghaering.de:


--
assignee:  - ghaering

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21250
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2015-04-16 Thread Raúl Cumplido

Changes by Raúl Cumplido raulcumpl...@gmail.com:


--
nosy: +raulcd

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21250
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2015-04-15 Thread Alex Lord

Alex Lord added the comment:

I've added a set of tests which test the insert or [algorithm] branch of 
sqlite. It took some getting used to python.sqlite3's transaction model but I 
think I have a much better understanding now.

--
keywords: +patch
Added file: http://bugs.python.org/file39052/sqlite_tests.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21250
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2015-04-15 Thread Alex Lord

Changes by Alex Lord lostdogs...@gmail.com:


--
components: +Library (Lib)

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21250
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2014-04-16 Thread Alex Lord

New submission from Alex Lord:

In Lib/sqlite3/tests/dbapi.py there are no unit tests which test out sqlite3's 
'insert or [algorithm].' These algorithms are also referred to as SQL 'insert 
on conflict.'

More details at,
https://www.sqlite.org/lang_conflict.html

Not having unit tests for these features, especially 'insert or rollback,' 
seems like an easy way for timing and threading bugs to get lost in the 
database api.

--
components: Tests
messages: 216448
nosy: Alex.Lord
priority: normal
severity: normal
status: open
title: sqlite3 doesn't have unit tests for 'insert or [algorithm]' 
functionality.
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21250
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2014-04-16 Thread Ned Deily

Ned Deily added the comment:

Are you interested in submitting a patch?

--
nosy: +ghaering, ned.deily
stage:  - needs patch
versions:  -Python 3.1, Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21250
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2014-04-16 Thread Alex Lord

Alex Lord added the comment:

Yes, I'm going to work on one after I fix Issue16864 today.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21250
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com