sqlparse icon indicating copy to clipboard operation
sqlparse copied to clipboard

Error when copying a statement

Open BStevanoski opened this issue 2 years ago • 1 comments

The following minimal code yields an error.

Code:

import sqlparse
import copy

query = 'SELECT * FROM adults WHERE age < 20'
parsed = sqlparse.parse(query)[0]
copied_parsed = copy.deepcopy(parsed)

Error: TypeError: '_TokenType' object is not callable

I am using Conda environment, with Python 3.9 and the following version of the library: sqlparse 0.4.2 pyhd8ed1ab_0 conda-forge

Googling the error did not help.

Looking forward to your response!

BStevanoski avatar Jul 08 '22 10:07 BStevanoski

@andialbrecht Please let me know if the repo is no longer maintained. :)

BStevanoski avatar Jul 11 '22 10:07 BStevanoski

@andialbrecht Please let me know if the repo is no longer maintained. :)

it is... but sometimes it takes some time ;)

Thanks for reporting this issue!

andialbrecht avatar Sep 19 '23 19:09 andialbrecht