Switching the export format removes filesname part after 1st dot
A Java SQL client for any JDBC compliant database
Brought to you by:
colbell,
gerdwagner
Sorry, I can't reproduce your problem. In my tests when I switch file type, the string after the LAST dot of
d:\2021-05-14 STEP06.17 database PRD mismatching transactions.XLS
was replaced only.
Could you give some more details?
Quite embarrassing mistake. (I only post if I can do the same problem at least twice.)
Often my prepared statements have a suggested filename in the comment and I paste the filename, adjusting the date only.
I finally found that I made a typo, having ",xls" instead of ".xls"
(of course, pasting the typo "worked" each time when testing)
d:\2021-05-14 STEP06.17 database PRD mismatching transactions,XLS
So when switching the extension I got the impression the FIRST dot was used.
Terribly sorry about that.
Desperately trying to make this a bit useful I would like to question why an "extension" like ".17 database PRD mismatching transactions,XLS" should be removed on switching :-)
Maybe only the listed extensions CSV, XLSX, XLS, XML, JSON should be removed, if found at the end following a dot?
Take this as a very weak suggestion, I personally dislike changing long established functionality, if there isn't a compelling reason. Maybe many people like this "clean-up" functionality to remove everything after the LAST dot ;-)
So, if you think the functionality should stay, please close as NOTABUG.
Your suggestion concerning "everything after the LAST dot" is committed to out GIT repository and will be available in future snapshots and versions. Excerpt from change log:
1474 File export dialog: When export file type was changed any string behind the last "." of the selected export file
was replaced by the new file type's ending. Now only known file type endings are replaced.
Examples: