sqlparse icon indicating copy to clipboard operation
sqlparse copied to clipboard

sqlparse get stuck in Lexer

Open sunjun-csu opened this issue 5 years ago • 0 comments

my python process uses sqlparse to format plain sql , after running for a while, the whole process gets stuck, I use gdb and py-list to analyze the thread stack, here is the result:

(gdb) py-list 55 format(type(text))) 56 57 iterable = enumerate(text) 58 for pos, char in iterable: 59 for rexmatch, action in SQL_REGEX:

60 m = rexmatch(text, pos) 61 62 if not m: 63 continue 64 elif isinstance(action, tokens._TokenType): 65 yield action, m.group()

sunjun-csu avatar Apr 21 '21 03:04 sunjun-csu