CRITICAL BUG: delete object deletes the WRONG object!
Posted: Thu 11 May 2017 11:28
Hi,
I just lost a bunch of important data due to DBforge deleting the wrong table. It can be reproduced as follows:
create table dbo."NAME" (x int)
create table dbo."""NAME""" (x int)
You will now have one table NAME and one table "NAME"
Then try to delete "NAME" in the "Database Explorer" pane. It will at first appear to have worked, but if you press F5 to refresh, you'll see that DBforge has actually dropped NAME, not "NAME". I guess that DBforge just messes up the quoting and generates a SQL statement along the lines of:
DROP TABLE dbo."NAME"
when it should have created a statement
DROP TABLE dbo."""NAME"""
Please get your quoting right!
Also, if you fix this, please verify that it also works with tables named [""] or "][", etc.
Otherwise, thank you for your excellent product.
I just lost a bunch of important data due to DBforge deleting the wrong table. It can be reproduced as follows:
create table dbo."NAME" (x int)
create table dbo."""NAME""" (x int)
You will now have one table NAME and one table "NAME"
Then try to delete "NAME" in the "Database Explorer" pane. It will at first appear to have worked, but if you press F5 to refresh, you'll see that DBforge has actually dropped NAME, not "NAME". I guess that DBforge just messes up the quoting and generates a SQL statement along the lines of:
DROP TABLE dbo."NAME"
when it should have created a statement
DROP TABLE dbo."""NAME"""
Please get your quoting right!
Also, if you fix this, please verify that it also works with tables named [""] or "][", etc.
Otherwise, thank you for your excellent product.