Bug 475247 - Cheque number field kmmSplits.checkNumber is too small
Summary: Cheque number field kmmSplits.checkNumber is too small
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: database (show other bugs)
Version: 5.1.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-05 14:59 UTC by David
Modified: 2023-10-05 14:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2023-10-05 14:59:08 UTC
SUMMARY
***
Table kmmSplits, column checkNumber is declared as VARCHAR(32), however my banking system is creating entries with cheque numbers like "BALANCE_CASHBACK-2xxxxxxd-5xx6-4xxc-8xxd-9xxxxxxxxxx2"
***


STEPS TO REPRODUCE
1. Create transaction with long cheque number (such as the example)
2. Save As to SQL

OBSERVED RESULT
Save As will fail, reporting that the data is too large for the checkNumber field.

EXPECTED RESULT
Transaction is saved into the database as entered without truncation or errors. (except in the case of an obscenely long entry)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 23.04
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Using the KMyMoney Tools menu, select the "Generate SQL" tool and copy the generated code to a text editor. Searching for checkNumber verifies that the field is VARCHAR(32). I recommend that it be changed in future versions to VARCHAR(64).