You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewException($"Failed to retrieve a binding at the index {i}, the total bindings count is {Bindings.Count}");
Currently, I'm not aware of a character that wouldn't be a legal SQLServer character in this type of query to use as binding. Maybe something like SQLKATABINDING has to be used instead, if you include that in your query you must just be trying to break it.
Honestly, it would be fine if this is kept this way and that's made clear but I doubt it's intended behavior.
Sorry that I have all these stupid edge-case issues, ha.
The text was updated successfully, but these errors were encountered:
?
is a legal character in SQLServer, sadly.Building following query would not work currently:
SELECT TOP(10) [A].[B] AS [TEST?] FROM [C]
But SQLServer is completely fine with this.
What breaks this is the fact that questionmarks are current used as placeholders for "bindings" such as
TOP(?)
. And then later gets filled in here:querybuilder/QueryBuilder/SqlResult.cs
Line 53 in ac897e0
But because the amount of question marks in the query is higher than the amount of bindings, an exception gets triggered here:
querybuilder/QueryBuilder/SqlResult.cs
Line 57 in ac897e0
Currently, I'm not aware of a character that wouldn't be a legal SQLServer character in this type of query to use as binding. Maybe something like
SQLKATABINDING
has to be used instead, if you include that in your query you must just be trying to break it.Honestly, it would be fine if this is kept this way and that's made clear but I doubt it's intended behavior.
Sorry that I have all these stupid edge-case issues, ha.
The text was updated successfully, but these errors were encountered: