Skip to content

Commit 89ab16d

Browse files
authored
update java library to 2.1.0-preview (#899)
1 parent 824e046 commit 89ab16d

File tree

4 files changed

+32
-3
lines changed

4 files changed

+32
-3
lines changed

samples/samples-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<dependency>
2828
<groupId>com.microsoft.azure.functions</groupId>
2929
<artifactId>azure-functions-java-library-sql</artifactId>
30-
<version>2.0.0-preview</version>
30+
<version>2.1.0-preview</version>
3131
</dependency>
3232

3333
<dependency>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*/
6+
7+
package com.function;
8+
9+
import com.microsoft.azure.functions.ExecutionContext;
10+
import com.microsoft.azure.functions.annotation.FunctionName;
11+
import com.microsoft.azure.functions.sql.annotation.SQLTrigger;
12+
import com.function.Common.SqlChangeProduct;
13+
import com.google.gson.Gson;
14+
15+
import java.util.logging.Level;
16+
17+
public class ProductsTriggerLeasesTableName {
18+
@FunctionName("ProductsTriggerLeasesTableName")
19+
public void run(
20+
@SQLTrigger(
21+
name = "changes",
22+
tableName = "[dbo].[Products]",
23+
connectionStringSetting = "SqlConnectionString",
24+
leasesTableName = "Leases")
25+
SqlChangeProduct[] changes,
26+
ExecutionContext context) {
27+
28+
context.getLogger().log(Level.INFO, "SQL Changes: " + new Gson().toJson(changes));
29+
}
30+
}

test/Integration/SqlTriggerBindingIntegrationTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,6 @@ void MonitorOutputData(object sender, DataReceivedEventArgs e)
811811
/// </summary>
812812
[Theory]
813813
[SqlInlineData()]
814-
[UnsupportedLanguages(SupportedLanguages.Java)]
815814
public void LeasesTableNameTest(SupportedLanguages lang)
816815
{
817816
this.ExecuteNonQuery("DROP TABLE IF EXISTS [az_func].[Leases]");

test/Integration/test-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<dependency>
2828
<groupId>com.microsoft.azure.functions</groupId>
2929
<artifactId>azure-functions-java-library-sql</artifactId>
30-
<version>2.0.0-preview</version>
30+
<version>2.1.0-preview</version>
3131
</dependency>
3232

3333
<dependency>

0 commit comments

Comments
 (0)