Skip to content

Conversation

@roji
Copy link
Member

@roji roji commented Sep 1, 2025

No description provided.

@roji roji enabled auto-merge (rebase) September 1, 2025 06:54
@roji roji merged commit 620b8cf into npgsql:main Sep 1, 2025
16 checks passed
@roji roji deleted the Sync branch September 1, 2025 07:07
@complex_type_p_AddressLine1='New AddressLine1'
@complex_type_p_AddressLine2='New AddressLine2'
@complex_type_p_Tags={ 'new_tag1', 'new_tag2' } (DbType = Object)
@complex_type_p_Tags={ 'new_tag1'
Copy link
Member Author

Choose a reason for hiding this comment

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

@cincuranet see this change after syncing to latest upstream EF; this is most likely because of dotnet/efcore#36594. I think we should improve the logic slightly.

Choose a reason for hiding this comment

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

The logic there, sadly, is inherently broken and can't be fixed without redoing the whole parameter processing.

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, couldn't we e.g. track parentheses characters in the logic you added ('{', '(', '[') and ignore commas when they're inside?

Copy link
Member Author

Choose a reason for hiding this comment

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

(for that matter, we should also ignore commas within quotes if we're not already doing so)

Choose a reason for hiding this comment

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

No, because single quotes are not escaped. I.e. @complex_type_p_AddressLine1='foo'bar'. Although we can "see" that foo'bar is the value, parsing the whole string with parameters is not reliable. We need to change it from having single string without escaping on input to either add escaping, or better pass a list.

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.

2 participants