Bug in using views?

Discussion of open issues, suggestions and bugs regarding database management and administration tools for MySQL
Post Reply
tptackab
Posts: 2
Joined: Sat 01 Nov 2008 16:54

Bug in using views?

Post by tptackab » Sat 01 Nov 2008 18:00

I believe there may be a bug in dbForge Studio for MySQL v3. My database server is XP Pro and I connect to the server from a remote desktop running XP Pro and dbForge with newly installed .NET Framework 3.5.

If I connect to the server remotely, I get an error when I try to view or edit a database view using dbForge. I only get this error if the view definer is root@localhost. The error says that it "Cannot obtain the SQL code for a view 'test_v'. Probably, you do not have enough privileges to get view metadata".

If I drop the view, and then recreate it while logged in remotely (i.e. view definer is root@%), I can then view or edit the view from within dbForge.

Both root@% and root@localhost have all privileges, including SHOW VIEW. Also, I don't get, and can't reproduce this error using other tools that I'm currently evaluating (Navicat and EMS SQL Manager), even if the view definer is root@localhost.

Is this a bug? If root@any has all privs, why does this not work with a view if the definer is root@localhost?

So far, I like dbForge better than the other tools, but I have to get past this issue before making a purchase. :-)

Here is the DDL from the very simple test view I'm using (it just populates a single view row with system date):

Code: Select all

CREATE OR REPLACE
ALGORITHM = UNDEFINED
SQL SECURITY INVOKER
VIEW med.test_v
AS
/* ALGORITHM=UNDEFINED */ SELECT
  NOW() AS `NOW()`;

Duke
Devart Team
Posts: 476
Joined: Fri 29 Oct 2004 09:25

Post by Duke » Mon 03 Nov 2008 08:13

We are already aware of this issue and working over it. It will be fixed in the next build.

tptackab
Posts: 2
Joined: Sat 01 Nov 2008 16:54

Post by tptackab » Mon 03 Nov 2008 15:36

Thanks Duke!

Post Reply