Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinitive loop while parsing Array of strings #199

Open
Romamo opened this issue Nov 30, 2022 · 0 comments
Open

Infinitive loop while parsing Array of strings #199

Romamo opened this issue Nov 30, 2022 · 0 comments

Comments

@Romamo
Copy link
Contributor

Romamo commented Nov 30, 2022

Due to repeated unescape original data destroyed and failed to be parsed

from infi.clickhouse_orm import Database, Memory, fields, models

class Test(models.Model):
field = fields.ArrayField(fields.StringField())

engine = Memory()

db = Database('demo')
db.drop_table(Test)
db.create_table(Test)

test = Test(field=["']"])

db.insert([test])
print("Data inserted. Trying to select... Infinite loop...")
for test in db.select("SELECT * FROM test", model_class=Test):
print(test.field)

Fix #198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant