Skip to content

Commit

Permalink
Fix local
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-romano-DD committed Jan 30, 2025
1 parent 58f539c commit 4b018f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"value": "INSERT INTO Orders (CustomerId, EmployeeId, OrderDate, RequiredDate, ShipVia, Freight, ShipName, ShipAddress, ShipCity, ShipPostalCode, ShipCountry) VALUES ('VINET','5','2021-01-01','2021-01-01',"
},
{
"value": "'3','32,38','Vins et alcools Chevalier','John',",
"value": "'3','32','Vins et alcools Chevalier','John',",
"source": 0
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ public IActionResult InterpolatedSqlString(string name)
OrderDate = new DateTime(2021, 1, 1),
RequiredDate = new DateTime(2021, 1, 1),
ShipVia = 3,
Freight = 32.38M,
Freight = 32,
ShipName = "Vins et alcools Chevalier",
ShipAddress = name,
ShipCity = "Reims",
Expand All @@ -1222,7 +1222,7 @@ public IActionResult InterpolatedSqlString(string name)
"ShipCity, ShipPostalCode, ShipCountry" +
") VALUES (" +
$"'{order.CustomerId}','{order.EmployeeId}','{order.OrderDate:yyyy-MM-dd}','{order.RequiredDate:yyyy-MM-dd}'," +
$"'{order.ShipVia}','{order.Freight:0.00}','{order.ShipName}','{order.ShipAddress}'," +
$"'{order.ShipVia}','{order.Freight}','{order.ShipName}','{order.ShipAddress}'," +
$"'{order.ShipCity}','{order.ShipPostalCode}','{order.ShipCountry}')";
sql += ";\nSELECT OrderID FROM Orders ORDER BY OrderID DESC LIMIT 1;";

Expand Down

0 comments on commit 4b018f0

Please sign in to comment.