Replies: 5 comments 12 replies
-
This issue has come up in the Mirth Slack. As best I can tell, there were some changes to BasicRowProcessor in Apache Commons DbUtils 1.4, which was in pre Mirth 3.12.0 and DbUtils 3.17 which is what was updated in Mirth 3.12.0. A possible workaround might be to use a DbReceiver that runs Javascript instead of a SQL Query and modify the returned results set to force column names to lower. As best I can tell the source level fix is to configure the BasicRowProcessor to force the mapping to lower case. Not sure if the fix for DBUTILS-91 triggered the issue or there were other changes in Commons DbUtils that changed the default mapping behavior. |
Beta Was this translation helpful? Give feedback.
-
I'm curious if this will be addressed in the next update? This was a major hurdle for us in upgrading to 3.12 and broke 100s of our channels. Seems like a major oversight for Database Readers. |
Beta Was this translation helpful? Give feedback.
-
I'm torn on this. I don't like the current behavior (where I hope that the answer isn't to revert the change but to make it configurable on the DB reader. That would let us build new channels without the annoying downcasing, and let us selectively migrate channels one by one (or just leave old channels as is). |
Beta Was this translation helpful? Give feedback.
-
The team is reviewing the ticket and will update this group here and on slack as we prep for the work to be done. |
Beta Was this translation helpful? Give feedback.
-
I don't completely disagree with you that it's odd that the case in your
select is ignored in your message builder, but also seeing as SQL is case
insensitive I don't see why then the message builders should be case
sensitive. It's not like you can have SomeColumnName and somecolumnname
In your SQL select.so I don't see what you gain by making the message
builder case sensitive. There's literally no benefit at all that I can see
by having any of this stuff case sensitive. Other than creating more
tedious work for the end user to make sure they are matching up
variable names between their source and destination.
We ended up creating a preprocessor script for each channel to lowercase
the RAW message, it was a ton of work and we still had to change a bunch of
transformers but in the end it did seem to end up working. But it was a
TON of work we shouldn't have had to do.
…On Wed, Jan 5, 2022 at 9:42 AM Michael Kopinsky ***@***.***> wrote:
I'm torn on this. I don't like the current behavior (where SELECT
SomeColumnName FROM table creates <somecolumnname>value</somecolumnname>)
but I also don't want dozens of channels to break and have been holding off
on upgrading to 3.12 as a result.
I hope that the answer isn't to revert the change but to make it
configurable on the DB reader. That would let us build new channels without
the annoying downcasing, and let us selectively migrate channels one by one
(or just leave old channels as is).
—
Reply to this email directly, view it on GitHub
<#4878 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPOK4TUXYSN6Y6A3UHCOJDUURKHFANCNFSM5I2JKDEA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Hi,
since the update to 3.12.0 XML tags of messages in the source connector of type database reader started to follow the case of the SQL statement. Before all tags were in lowercase.
Example:
SQL statement -> SELECT e.EventID AS T_Events_EventID from T_Events e
source message before 3.12.0 -> <t_events_eventid>7269775</t_events_eventid>
source message after 3.12.0 -> <T_Events_EventID>7269775</T_Events_EventID>
This is breaking our code as mapping in the source transformer seems to be case sensitive. Something like msg['t_events_eventid'].toString() is not working anymore
wondering if anybody has found this issue as well.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions