Page 1 of 1

Bug in using views?

Posted: Sat 01 Nov 2008 18:00
by tptackab
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()`;

Posted: Mon 03 Nov 2008 08:13
by Duke
We are already aware of this issue and working over it. It will be fixed in the next build.

Posted: Mon 03 Nov 2008 15:36
by tptackab
Thanks Duke!