Skip to content

Commit 70dc0b0

Browse files
Update README.md (Azure#627)
* Update README.md Add note about the current datetime format behavior difference between C# in-process and other languages. * move to output binding section * Update README.md Co-authored-by: Charles Gagnon <[email protected]> Co-authored-by: Charles Gagnon <[email protected]>
1 parent 4d885d9 commit 70dc0b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Databases on SQL Server, Azure SQL Database, or Azure SQL Managed Instance which
4444

4545
### Output Bindings
4646
- Output bindings against tables with columns of data types `NTEXT`, `TEXT`, or `IMAGE` are not supported and data upserts will fail. These types [will be removed](https://docs.microsoft.com/sql/t-sql/data-types/ntext-text-and-image-transact-sql) in a future version of SQL Server and are not compatible with the `OPENJSON` function used by this Azure Functions binding.
47+
- .NET In-Proc output bindings against tables with columns of data types `DATE`, `DATETIME`, `DATETIME2`, `DATETIMEOFFSET`, or `SMALLDATETIME` will convert values for those columns to ISO8061 format ("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fffZ") before upsertion. This does not happen for functions written in C# out-of-proc or other languages.
4748
- Output bindings execution order is not deterministic ([azure-webjobs-sdk#1025](https://github.com/Azure/azure-webjobs-sdk/issues/1025)) and so the order that data is upserted is not guaranteed. This can be problematic if, for example, you upsert rows to two separate tables with one having a foreign key reference to another. The upsert will fail if the dependent table does its upsert first.
4849

4950
Some options for working around this :
@@ -57,7 +58,6 @@ Databases on SQL Server, Azure SQL Database, or Azure SQL Managed Instance which
5758
- Python: The workaround is to use `parse_qs` - an example can be found [here](https://github.com/Azure/azure-functions-sql-extension/blob/main/samples/samples-python/AddProductParams/__init__.py). Issue is tracked [here](https://github.com/Azure/azure-functions-python-worker/issues/894).
5859

5960
### Input Bindings
60-
- Input bindings against tables with columns of data types 'DATETIME', 'DATETIME2', or 'SMALLDATETIME' will assume that the values are in UTC format.
6161
- For Java Functions using Output bindings against a table with columns of data types 'DATETIME', 'DATETIME2', or 'SMALLDATETIME', use java.util.Date type to ensure the datetime is formatted correctly.
6262

6363
### Trigger Bindings

0 commit comments

Comments
 (0)