Previous Thread
Next Thread
Print Thread
Hop To
[FIXED for 7.5.1] 7.5 Database Execute not working
#223801 03/09/2009 12:51 AM
Joined: Aug 2006
Posts: 583
Basil Offline OP
old hand
OP Offline
old hand
Joined: Aug 2006
Posts: 583
When I save a database query in the Database tools, then try to click the execute link to execute that query, nothing happens. I have to cut and past the query into the query window, then click the execute button and that does work, But the execute link for a saved query doesn't work at all for me.


Re: 7.5 Database Execute not working
Basil #223809 03/09/2009 1:20 PM
Joined: Dec 2003
Posts: 6,144
Likes: 21
Online Yawn
Joined: Dec 2003
Posts: 6,144
Likes: 21
Basil must be bored and testing a lot of items. Go Basil!!
I tried this myself for the first time and it does not work either except for delete using 7.5.

But I do have a question on the options on saved queries.
There is use,execute and delete.

What is the difference between use and execute?


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: 7.5 Database Execute not working
Ruben #223810 03/09/2009 1:37 PM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
Use should load it into the textarea for possible edit..

Execute does a load into the textarea and simulates (javascript) hitting the 'Execute' button right after that..

I put that code in for 7.3 and dunno why it might have changed. :shrug:

I think there was some modification to just cleanup the <br /> stuff in the actual text, but nothing more...

i'm curious as to which browser y'all are usin.. i use FFox 3

Re: 7.5 Database Execute not working
SD #223811 03/09/2009 1:39 PM
Joined: Dec 2003
Posts: 6,144
Likes: 21
Online Yawn
Joined: Dec 2003
Posts: 6,144
Likes: 21
Okay. When it works I guess.
Thanks guy.
Right now nothing happens at all.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: 7.5 Database Execute not working
Ruben #223813 03/09/2009 1:55 PM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
yep.. it was working in 7.4.1 from my test.. now broken in 7.5

tested with FF3, IE7, Chrome frown

/templates/default/admin/database.tmpl

PHP Code
document.sql.command.value = commandArray[i].replace(/JSLBR/g,'\n'); 

in an effort to solve the <br> issue, it got broke..

Re: 7.5 Database Execute not working
SD #223814 03/09/2009 1:58 PM
Joined: Jun 2006
Posts: 9,243
Former Developer
Offline
Former Developer
Joined: Jun 2006
Posts: 9,243
Hmm, will look and see what I may have borken.

Re: 7.5 Database Execute not working
Rick #223819 03/09/2009 2:28 PM
Joined: Jul 2006
Posts: 4,062
Offline
Joined: Jul 2006
Posts: 4,062
Originally Posted by Rick
Hmm, will look and see what I may have borken.


I Love Ricks Honesty wink



BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Re: 7.5 Database Execute not working
Mark S #223825 03/09/2009 2:40 PM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
and his schpeeling too laugh

Re: 7.5 Database Execute not working
SD #223828 03/09/2009 2:54 PM
Joined: Jun 2006
Posts: 9,243
Former Developer
Offline
Former Developer
Joined: Jun 2006
Posts: 9,243
Found it. Line 39 of templates/default/admin/database.tmpl currently has this:

Code

document.sql.command.value = commandArray[i].replace(/JSLBR/g,'\n');


That, should be this:

Code

document.sql.command.value = commandArray[i].replace(/JSLBR/g,'\\n');


Last edited by Rick; 03/09/2009 2:54 PM.
Re: 7.5 Database Execute not working
Rick #223900 03/10/2009 5:42 PM
Joined: Aug 2006
Posts: 583
Basil Offline OP
old hand
OP Offline
old hand
Joined: Aug 2006
Posts: 583
Looks like it's juat an extra \ needed, right?

Re: 7.5 Database Execute not working
Basil #223901 03/10/2009 5:43 PM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
correct.. the \ is a special char and needs to be escaped by using another \ smile


Link Copied to Clipboard
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
[NOTABUG] Report Post bug..
by Morgan - 07/05/2020 1:48 PM
Trial Subscription question.
by Ruben - 07/03/2020 2:34 PM
Unread posts no longer tracked per user...
by KirkW - 06/16/2020 12:21 AM
Max Image file size upload
by jjjjj - 06/10/2020 10:25 PM
Error on Inert into POSTS
by jjjjj - 06/07/2020 8:09 PM
Who's Online Now
4 members (Gizmo, Ruben, JAISP, 1 invisible), 67 guests, and 47 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4