wrong query with label example

Issue #356 resolved
Former user created an issue

In 0.3 documentation, section "Constructing SQL Queries via Python Expressions > Simple Select > Using Column Labels > use_labels Generates Abbreviated Labels"

This example is given :

long_named_table = users.alias('this_is_the_person_table')
sqlc = select([person](person), use_labels=True).execute()

I think it should be :

long_named_table = users.alias('this_is_the_person_table')
sqlc = select([long_named_table](long_named_table), use_labels=True).execute()

Comments (2)

  1. Log in to comment