mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-26 21:30:12 +03:00
Merge commit '4a57064
'
This commit is contained in:
commit
2cb611ad53
7 changed files with 22 additions and 21 deletions
|
@ -162,7 +162,7 @@ string escapedVariants(Database db, in string sql, Variant[] t) {
|
|||
string fixedup;
|
||||
int currentIndex;
|
||||
int currentStart = 0;
|
||||
foreach(i, dchar c; sql) {
|
||||
foreach(int i, dchar c; sql) {
|
||||
if(c == '?') {
|
||||
fixedup ~= sql[currentStart .. i];
|
||||
|
||||
|
@ -321,7 +321,7 @@ string fixupSqlForDataObjectUse(string sql) {
|
|||
string[] tableNames;
|
||||
|
||||
string piece = sql;
|
||||
int idx;
|
||||
sizediff_t idx;
|
||||
while((idx = piece.indexOf("JOIN")) != -1) {
|
||||
auto start = idx + 5;
|
||||
auto i = start;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue