Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve SQL Security and Optimize Bank Management System Functionality #2595

Merged

Conversation

AdityaSharma283
Copy link
Contributor

This pull request includes the following updates and improvements to the bank management system:

Admin Table Fix:

Modified the logic to insert the admin record only if it does not already exist, preventing duplicate entries.

Parameterized Queries:

Replaced all string formatting queries with parameterized queries to enhance security and prevent SQL injection vulnerabilities.

Tuple Syntax Corrections:

Fixed the tuple syntax in functions such as check_balance(acc_no) and get_detail(acc_no) by using (acc_no,) instead of (acc_no).

Optimized Balance Operations:

Improved balance update and retrieval functions by leveraging SQL arithmetic operations instead of fetching, modifying, and then updating values manually.

These changes not only improve security and reliability but also streamline the overall code performance and maintainability. Please review the updates and let me know if there are any further changes needed.

@geekcomputers geekcomputers merged commit b9d135a into geekcomputers:master Apr 2, 2025
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