Skip to content

Conversation

@lucyzhang929
Copy link
Contributor

Will be creating a separate PR for samples and tests.


<developers>
<developer>
<id>LucyZhang</id>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be something generic like "Microsoft"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you reach out to see if there's a reason they're doing that? That's not normally how we ship stuff so I don't think we should be doing that unless there's a specific reason it needs to be someone's name.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually looking at the XSD it seems the developers field is optional so I'd just remove that - unless again there's a specific requirement for having at least one developer listed.

https://maven.apache.org/xsd/maven-4.0.0.xsd

Copy link
Contributor

@Charles-Gagnon Charles-Gagnon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably remove the developers fields but otherwise looks fine

/**
* Text or Stored Procedure.
*/
String commandType() default "";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're defaulting to Text on CSharp, shouldn't we do the same here instead of leaving it empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to use Text as default but when I ran a Java function without the commandType specified, it threw an error:
Microsoft.Azure.WebJobs.Extensions.Sql: The type of the SQL attribute for an input binding must be either CommandType.Text for a direct SQL query, or CommandType.StoredProcedure for a stored procedure.

I'll leave it empty for now but can certainly revisit this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please file an issue so we can track that

@lucyzhang929 lucyzhang929 merged commit 90a953e into main Oct 3, 2022
@lucyzhang929 lucyzhang929 deleted the luczhan/java branch October 3, 2022 20:25
PBBlox pushed a commit to PBBlox/azure-functions-sql-extension that referenced this pull request Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants