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

select * from dolt_status as of BRANCHNAME shows status of currently checked out branch. #8283

Open
nicktobey opened this issue Aug 18, 2024 · 0 comments
Labels
bug Something isn't working correctness We don't return the same result as MySQL version control

Comments

@nicktobey
Copy link
Contributor

To reproduce:

call dolt_branch('main');
call dolt_branch('other');
call dolt_checkout('main');
create table t(pk int primary key);
select * from dolt_status; -- 1
select * from dolt_status as of main; -- 2
select * from dolt_status as of other; -- 3
call dolt_checkout('other');
select * from dolt_status; -- 4
select * from dolt_status as of main; -- 5
select * from dolt_status as of other; -- 6

Expected behavior: selects (1), (2), and (5) are non-empty
Actual behavior: selects (1), (2), and (3) are non-empty

The results seem to be based on the currently checked out branch, not the branch specified in the query.

Note that this only applies to as of. select * from dbname/main.dolt_status; works as expected.

@timsehn timsehn added bug Something isn't working version control correctness We don't return the same result as MySQL labels Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctness We don't return the same result as MySQL version control
Projects
None yet
Development

No branches or pull requests

2 participants