Opened 4 years ago

Last modified 4 years ago

#26702 closed enhancement

Py3: Fix database/sql_db module for python3 — at Version 4

Reported by: vklein Owned by:
Priority: major Milestone: sage-8.5
Component: python3 Keywords:
Cc: Merged in:
Authors: Vincent Klein Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by vklein)

In sql_db.py method show use a select * which give the column list with default order.
The default order being defined by the CREATE TABLE sql statement.

Given that the table_skeleton use a dict, we cannot predict the order of columns in the table (Because of that using add_rows without defining entry_order parameter is tricky).

In this ticket i fixed the doctests using an OrderedDict? instead of dict.

Change History (4)

comment:1 Changed 4 years ago by vklein

  • Description modified (diff)

comment:2 Changed 4 years ago by vklein

  • Description modified (diff)

comment:3 Changed 4 years ago by vklein

  • Summary changed from Py3: Fix database module for python3 to Py3: Fix database/sql_db module for python3

comment:4 Changed 4 years ago by vklein

  • Description modified (diff)
Note: See TracTickets for help on using tickets.