knowit / Dataplattform

3 stars 3 forks source link

Fix table lookup in SQL string #260

Closed bjorn-iversen closed 3 years ago

bjorn-iversen commented 3 years ago

The old method split the SQL string on whitespace, which means that it couldn't find table names that were not surrounded with whitespace, i.e. it wouldn't register the table cv_partner_employees if the string contained the substring (SELECT user_id, email FROM cv_partner_employees)