× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
aquaclusters.josekibold reported 2012-03-06T12:26:09Z  · last modified 2012-07-03T18:28:38Z

\source side-effect on the SQL query buffer


Priority Minor
Complexity Unknown
Component App - FluidShell
Version 12.0
  • On an AquaScript project that has a MySQL connection, I create (under "User Files" folder) a new test.sql script containing "select 1 /";
  • I open a new SQL Shell window (the MySQL connection node is not selected in the tree). SQL Shell toolbar reports that it is currently "Disconnected" (expected);
  • I try to run the script using \source ; see the output below:

FluidShell 11.0  Type \help for a list of commands.
1> \source test.sql
select 1 /
Query not sent: server is disconnected.
2> \connect mysql-server
2> \source test.sql
select 1 /

>[Error] Script lines: 1-3 --------------------------
 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'select 1' at line 2


 Warnings: --->
   W (1): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'select 1' at line 2
          <---
 [Executed: 3/6/2012 2:11:51 PM] [Execution: 0ms]



1> \source test.sql
select 1 /

 1   
 ----
 1   

 1 record(s) selected [Fetch MetaData: 1ms] [Fetch Data: 0ms]

 [Executed: 3/6/2012 2:11:56 PM] [Execution: 1ms]

What actually happens is that the content of the script is copied to the SQL buffer (note the 2> prompter), therefore the second \source call will fail. I don't know if this script content getting copied to visible SQL buffer is on purpose or not, but either the SQL buffer should be cleared if the \source command fails, or the \connect command should clear it.

Issue #6555

Closed
Fixed
Resolved 2012-06-29T17:24:01Z
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017