Forum Replies Created
-
AuthorPosts
-
peterlaursen
ParticipantWe have a releated request recorded here:
http://code.google.com/p/sqlyog/issues/detail?id=350
But to display data from more that one table you will need to execute a JOIN query and display will be in RESULT tab.
peterlaursen
Participant3) (special color setting for database objects) can be done if and only if Autocomplete is ON (what means it will need to be an ENTERPRISE feature). We cannot query the server for every keystroke, but we can (and do) query the Autocomplete database.
peterlaursen
ParticipantAlso 2) is an old request. I am surprised it is not in the googlecode issue-tracker. It may have been deleted or close by mistake or maybe it was not transferred from the system we used previously.
I have added here: http://code.google.com/p/sqlyog/issues/detail?id=1032
peterlaursen
Participantbut don't you rather think you need a Stored Function here (that is how I understand)?
Code:DELIMITER $$CREATE
FUNCTION `test`.`fun`()
RETURNS DATE
BEGIN
RETURN (SELECT '2009-03-22');
END$$DELIMITER;
SELECT fun();
— returns '2009-03-22'
peterlaursen
ParticipantCALL is a *command* not a *function*, so correct syntax is
Code:CALL getgamedate_test(@datum);and not (no ( ) after CALL)
Code:CALL (getgamedate_test(@datum));but I admit that we do not support OUT and INOUT parameters.
(I already added here: http://code.google.com/p/sqlyog/issues/detail?id=1030)
Instead you could do like this:
Code:SET @datum = '2008-03-22'; — only added for illustration, it can be omitted as wellDELIMITER $$
CREATE PROCEDURE `getgamedate_test`()
BEGIN
SELECT '2009-03-22' INTO @datum;
— or what ever SELECT statement you want to use
END$$DELIMITER;
CALL `getgamedate_test`();
SELECT @datum;
— returns '2009-03-22'
I do not know if anybody uses OUT and INOUT parameters except when passing one procedure call as argument to another). Anyway the OUT value is not a *result* – but we should return taht info to user too!
peterlaursen
ParticipantF5 refreshes the (active node of) the Object Browser. I think you have a valid point that there should be a keyboard option for 'refresh DATA' – or OBJECTS – (at least if DATA/OBJECT tab is visible and focus is there).
peterlaursen
Participant@leavy
I simply do not get your point: “Using this product involves building a repetitive workflow (with checks). Interfering with this workflow greatly increases the risk of error.”
???????
peterlaursen
ParticipantI tried this
Code:DELIMITER $$CREATE PROCEDURE `test`.`re`(INOUT parm INT)
BEGIN
SET parm = parm+7;
END$$
DELIMITER;SET @uservar = 6;
CALL re(@uservar);
It works fine. The calculaton results in @uservar = 13 what
Code:SELECT @uservartells! But the OUT value of the call statement is not 'picked' by SQLyog and not displayed. This is an old issue we probably almost forgot. I would consider adding this to the MESSAGES tab (“procedure test.re returned (IN)OUT parameter `parm` as 13” or something like that). Other proposals are welcome!
Maybe the reason for your error is that the @date variable was not defined when you used it as parameter?
Also please be specific about this error. “I got an error” tells almost nothing. Exactly what error did you get (the error no. and the error message)?
peterlaursen
ParticipantI understand that you are using OUT or INOUT parameter? Could you paste a simple example please (the output of “SHOW CREATE PROCEDURE procedurename”)?
I am afraid we do not support OUT or INOUT parameters. However inside it you could have a “SELECT date(now());” or “SELECT something AS date FROM .. ” statement.
But I also see you are using a 'user variable' (@date). Use variables are not returned by a Stored Procedure. You may create them or assign values to them inside or outside the Stored Procedure and no matter what you simply “SELECT @date” the retrieve the current value.
peterlaursen
ParticipantUser management icons will be reintroduced in 8.05.
peterlaursen
Participant“so I modified SQLYog source code” This could be interesting to other users! So if you want you could attach a SVN *diff* file here!
You are also welcome to propose a FAQ (I will then add a 'compiling' category to the FAQ).
peterlaursen
ParticipantDo you have the FLASH browser plugin installed? You will need to! Also MONyog makes extensive use of AJAX and will not work with 'old' Linux browsers (like Konqueror).
Also please tell on what platform you are running the browser, what browser you use and maybe post a screenshot or two!
peterlaursen
ParticipantIf there is only one statament in the editor that one will always execute. That was implemented sometime ago like that. If you experienced with a recent version that this did not happen I cannot explain it.
peterlaursen
ParticipantI have added this (reasonable) request here:
http://code.google.com/p/sqlyog/issues/detail?id=1022
It is not very complicated basically – only some considerations are required about where to have the option to play sound and where not.
peterlaursen
ParticipantIf SQLyog sends this statement and the result is only received after that time, then I cannot see how it could be a SQLyog problem!
-
AuthorPosts