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

lib/db: remove deprecated implementation of db_get_login() and replace it with that of db_get_login2() #4302

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ymdatta
Copy link
Contributor

@ymdatta ymdatta commented Sep 11, 2024

db_get_login() is deprecated in 7.8.0 release with da399c5. Change its function signature and implementation to match that of the currently preferred db_get_login2().

Modify db_get_login2() to internally call db_get_login() function call. In the future major version, db_get_login2() would be removed to have only one method to get login details for simplicity.

@github-actions github-actions bot added vector Related to vector data processing C Related code is in C database Related to database management libraries module labels Sep 11, 2024
@ymdatta ymdatta changed the title dbmi_base: Merge functions db_get_login2 and db_get_login db: Merge functions db_get_login2 and db_get_login Sep 11, 2024
@nilason nilason changed the title db: Merge functions db_get_login2 and db_get_login lib/db: remove deprecated implementation of db_get_login(), replace it with db_get_login2() Sep 11, 2024
@nilason nilason added this to the 8.5.0 milestone Sep 11, 2024
@nilason
Copy link
Contributor

nilason commented Sep 11, 2024

db_get_login() was deprecated (in favour of db_get_login2()) in 2015 with the 7.8.0 release: da399c5

I think this (8.5) may the moment to drop it.

@nilason
Copy link
Contributor

nilason commented Sep 11, 2024

(The CodeQL CI failure is unrelated to changes of this PR.)

ymdatta added a commit to ymdatta/grass that referenced this pull request Sep 12, 2024
In a similar vein to OSGeo#4302, remove deprecated implementation
of db_set_login() and replace it with that of db_set_login2().

Along with db_get_login(), db_set_login() was deprecated
(in favour of db_set_login2) in 2015 with the 7.8.0 release.
Commit: da399c5

Signed-off-by: Mohan Yelugoti <[email protected]>
@ymdatta ymdatta changed the title lib/db: remove deprecated implementation of db_get_login(), replace it with db_get_login2() lib/db: remove deprecated implementation of db_get_login() and replace it with that of db_get_login2() Sep 14, 2024
db_get_login() is deprecated in 7.8.0 release with da399c5. Change its
function signature and implementation to match that of the currently
preferred db_get_login2().

Modify db_get_login2() to internally call db_get_login() function call.
In the future major version, db_get_login2() would be removed to have
only one method to get login details for simplicity.

Signed-off-by: Mohan Yelugoti <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C database Related to database management libraries module vector Related to vector data processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants