Bug 293397 - Error on duplicate account name creation
Summary: Error on duplicate account name creation
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR minor
Target Milestone: ---
Assignee: Guillaume DE BURE
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-05 23:16 UTC by pcollet
Modified: 2012-02-06 20:59 UTC (History)
1 user (show)

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 pcollet 2012-02-05 23:16:29 UTC
Version:           unspecified (using KDE 4.7.4) 
OS:                Linux

You 've got an error message if you try to had an account name that already exists.

[ERR-5]: La création du compte a échoué
[ERR-10019]: column t_name is not unique Impossible d'extraire la ligne
[ERR-10019]: INSERT INTO account ('t_agency_number','t_comment','t_type','t_name','rd_bank_id','t_number','t_agency_address') VALUES ('','','C','Carte Bleue','1','','') 


Reproducible: Always

Steps to Reproduce:
In account Creation, try to create an account name that already existr


Expected Results:  
..

Why not checking that account name is unique before insert it the table and display a more explicit message ("Account name already exists. Please choose a new account name or click on modify to change account information for that current name")
Comment 1 Stephane MANKOWSKI 2012-02-06 20:59:50 UTC
Git commit 299bdb0b2f950ed37469a072f7ef586bfb98874a by Stephane Mankowski.
Committed on 06/02/2012 at 21:57.
Pushed by smankowski into branch 'Feature'.

M  +1    -0    CHANGELOG
M  +1    -1    plugins/skrooge/skrooge_bank/skgbankpluginwidget.cpp

http://commits.kde.org/skrooge/299bdb0b2f950ed37469a072f7ef586bfb98874a