Minor patch

This commit is contained in:
Miroslav Stampar
2026-01-04 20:54:50 +01:00
parent 58ebc41b28
commit 4af6dad130
3 changed files with 8 additions and 6 deletions

View File

@@ -106,10 +106,12 @@ class Replication(object):
"""
This function is used for selecting row(s) from current table.
"""
_ = 'SELECT * FROM %s' % self.name
query = 'SELECT * FROM "%s"' % self.name
if condition:
_ += 'WHERE %s' % condition
return self.execute(_)
query += ' WHERE %s' % condition
self.execute(query)
return self.parent.cursor.fetchall()
def createTable(self, tblname, columns=None, typeless=False):
"""