Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/samples-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<dependency>
<groupId>com.microsoft.azure.functions</groupId>
<artifactId>azure-functions-java-library-sql</artifactId>
<version>2.0.0-preview</version>
<version>2.1.0-preview</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/

package com.function;

import com.microsoft.azure.functions.ExecutionContext;
import com.microsoft.azure.functions.annotation.FunctionName;
import com.microsoft.azure.functions.sql.annotation.SQLTrigger;
import com.function.Common.SqlChangeProduct;
import com.google.gson.Gson;

import java.util.logging.Level;

public class ProductsTriggerLeasesTableName {
@FunctionName("ProductsTriggerLeasesTableName")
public void run(
@SQLTrigger(
name = "changes",
tableName = "[dbo].[Products]",
connectionStringSetting = "SqlConnectionString",
leasesTableName = "Leases")
SqlChangeProduct[] changes,
ExecutionContext context) {

context.getLogger().log(Level.INFO, "SQL Changes: " + new Gson().toJson(changes));
}
}
1 change: 0 additions & 1 deletion test/Integration/SqlTriggerBindingIntegrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,6 @@ void MonitorOutputData(object sender, DataReceivedEventArgs e)
/// </summary>
[Theory]
[SqlInlineData()]
[UnsupportedLanguages(SupportedLanguages.Java)]
public void LeasesTableNameTest(SupportedLanguages lang)
{
this.ExecuteNonQuery("DROP TABLE IF EXISTS [az_func].[Leases]");
Expand Down
2 changes: 1 addition & 1 deletion test/Integration/test-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<dependency>
<groupId>com.microsoft.azure.functions</groupId>
<artifactId>azure-functions-java-library-sql</artifactId>
<version>2.0.0-preview</version>
<version>2.1.0-preview</version>
</dependency>

<dependency>
Expand Down