Changes between Initial Version and Version 2 of Ticket #30511


Ignore:
Timestamp:
05/27/19 06:32:28 (4 years ago)
Author:
Mariusz Felisiak
Comment:

Thanks for the report. Can you provide more details about your use case? Can you also clarify what are you proposing? e.g.

  • using GENERATED AS IDENTITY instead of serial on PostgreSQL (I don't see much value in this),
  • adding extra fields to the PostgreSQL backends.

In Oracle we used GENERATED AS IDENTITY because there is no other way to create serial-like columns on Oracle which is not the case on PostgreSQL.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30511

    • Property Cc Michael Kany added
    • Property Version changed from 2.2 to master
    • Property Summary changed from AutoField with postgres10/11 as generated identity to AutoField with postgres10/11 as generated identity.
  • Ticket #30511 – Description

    initial v2  
    55
    66Adjustments only in base.py (line 70ff):
     7{{{
    78data_types = {
    89        'IdentityAutoField': 'integer',
    910        'IdentityBigAutoField': 'bigint',
    10 
     11}}}
    1112and schema.py, def column_sql () (line 178ff):
     13{{{
    1214# Primary key / unique outputs
    1315        if field.primary_key:
     
    1719        elif field.unique:
    1820            sql + = "UNIQUE"
    19 
     21}}}
    2022I can also send our code
    2123
Back to Top