.Sql: Fixing Joins/SqlId/SqlCol

git-svn-id: svn://ultimatepp.org/upp/trunk@4266 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-12-07 08:49:45 +00:00
parent eb500d6bfb
commit 6a87dc1e46
3 changed files with 27 additions and 3 deletions

View file

@ -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