-
-
Notifications
You must be signed in to change notification settings - Fork 519
Closed
Description
We have a table where the column name is "Qty as Litre". When using this column in insert,update queries it is interpreted as alias name, thus breaking the query as [Qty] as [Litre]. This is breaking the query. Is there a way to solve this?
var insertQuery = new Query("Table01").AsInsert(new Dictionary<string, object> { { "Int as Field01", 1 }, { "Long as Field01", 1 } });
sqlResult = compiler.Compile(insertQuery);
Console.WriteLine($"Insert Query: {Environment.NewLine}{sqlResult.Sql}");
Generated Output:
INSERT INTO [Table01] ([Int] AS [Field01], [Long] AS [Field01]) VALUES (@p0, @p1)
Metadata
Metadata
Assignees
Labels
No labels