schemasafe / troy

Type-safe and Schema-safe Scala wrapper for Cassandra driver
Apache License 2.0
151 stars 14 forks source link

Ensure String Interpolation / Bind Markers are used in correct places only #117

Open tabdulradi opened 7 years ago

tabdulradi commented 7 years ago

String Interpolation variables get replaced by the macro with Bind markers. Due to multiple reasons, Schema engine could detect a wrong number of Bind Markers.

Possible Reasons: 1- Bug in Schema Engine 2- User wrote bind markers himself in the query 3- User used String interpolation in wrong places

First expose the issue via testcases, then fix.