diff options
| author | Petri Lehtinen <petri@digip.org> | 2013-02-26 19:46:12 (GMT) |
|---|---|---|
| committer | Petri Lehtinen <petri@digip.org> | 2013-02-26 19:46:12 (GMT) |
| commit | e55aa69efc048ef4a9eb7525ad2fd74fd3dfbf05 (patch) | |
| tree | b05e5b83a130f4e04b0e4b1e18526a20b370aa2c /Lib/sqlite3/dbapi2.py | |
| parent | 8ff7f7207c706e3c931c0f2c80923a472ef2e351 (diff) | |
| parent | 6401ad66a76a2e447aad0c0aed173926b66acfd9 (diff) | |
| download | cpython-e55aa69efc048ef4a9eb7525ad2fd74fd3dfbf05.zip cpython-e55aa69efc048ef4a9eb7525ad2fd74fd3dfbf05.tar.gz cpython-e55aa69efc048ef4a9eb7525ad2fd74fd3dfbf05.tar.bz2 | |
Issue #14720: Enhance sqlite3 microsecond conversion, document its behavior
Diffstat (limited to 'Lib/sqlite3/dbapi2.py')
| -rw-r--r-- | Lib/sqlite3/dbapi2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sqlite3/dbapi2.py b/Lib/sqlite3/dbapi2.py index 1048992..9a0b766 100644 --- a/Lib/sqlite3/dbapi2.py +++ b/Lib/sqlite3/dbapi2.py @@ -67,7 +67,7 @@ def register_adapters_and_converters(): timepart_full = timepart.split(b".") hours, minutes, seconds = map(int, timepart_full[0].split(b":")) if len(timepart_full) == 2: - microseconds = int('{:0<6}'.format(timepart_full[1].decode())) + microseconds = int('{:0<6.6}'.format(timepart_full[1].decode())) else: microseconds = 0 |
