Skip to content

determining length field in index #2

@bobchainer

Description

@bobchainer

my first bug report, so be patient:)

@@ -116,7 +116,7 @@
>>> schemaobjects.index.IndexSchema.format_sub_part('column', 5)
'column(5)'
"""

  •    if isinstance(length, int) and length > 0:
    
  •    if (isinstance(length, int) or isinstance(length, long)) and length > 0:
         return "`%s`(%d)" % (field, length)
     else:
         return "`%s`" % (field)
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions