mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.Sql: Fixing Joins/SqlId/SqlCol
git-svn-id: svn://ultimatepp.org/upp/trunk@4266 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
eb500d6bfb
commit
6a87dc1e46
3 changed files with 27 additions and 3 deletions
|
|
@ -58,7 +58,7 @@ SqlBool FindSchJoin(const String& tables)
|
|||
INTERLOCKED {
|
||||
static VectorMap<String, SqlBool> cache;
|
||||
if(cache.GetCount() > 20000)
|
||||
cache.Clear();
|
||||
cache.Clear(); // Just to defend against unlikely dynamically created SqlSelect Join permutations
|
||||
int q = cache.Find(tables);
|
||||
if(q >= 0)
|
||||
return cache[q];
|
||||
|
|
@ -73,9 +73,9 @@ SqlBool FindSchJoin(const String& tables)
|
|||
}
|
||||
}
|
||||
}
|
||||
NEVER();
|
||||
return SqlBool::False();
|
||||
}
|
||||
NEVER_("Schema join not found");
|
||||
return SqlBool::False();
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
Loading…
Add table
Add a link
Reference in a new issue