× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
tariqrahiman reported 2012-10-12T21:10:35Z  · last modified 2012-10-15T17:08:27Z

Failed to encode String: Pipe closed


Dev
Fun Fun
funfun
QA
Niels Gron
NielsGron
Priority Low
Complexity Unknown
Component App - FluidShell - Command
Version 12.0

Version: 12.0.0-rc-23-5
Build #: 29719
Build Date: 2012-Oct-12 01:27:27 PM

Using sqlexport together with source gives Failed to encode String: Pipe closed error

To reproduce, open a FluidShell to MySQL 5.5.27 database seaworld ending with host ip 56. change to database seaworld

A.) Execute below 2 queries

$:1> select * from kingdom                                                                                                                                                             
$:2> sqlexport -f INSERT -SS GO -TT kingdom2 | source

The below error is generated :

  >[Error] Script lines: 1-4 --------------------------
 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 'INSERT INTO kingdom2(object_id, object_type, view_object_id, project_id, user_id' 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 'INSERT INTO kingdom2(object_id, object_type, view_object_id, project_id, user_id' at line 2
          <---
 [Executed: 10/12/2012 1:51:51 PM] [Execution: 0ms]

source: (standard input): Script error on line 3

 

B.) If you execute the INSERT statements separately you can find that there is no error and using source executes correctly

$:1> select * from kingdom                                                                                                                                                             
$:2> sqlexport -f INSERT -SS GO -TT kingdom2 >> out.data                                                                                                                               
$:1> source out.data                          

 

C.) if you limit the number of rows read using the limit clause as in select * from kingdom limit 10 the commands work fine.

 

So basically in Step A, the pipe gets closed and wrong error message is displayed to the user which gives him the impression that there is something wrong with the INSERT statements

2 attachments

Issue #7791

Closed
Fixed
Resolved 2012-10-13T05:42:45Z
 
 
Completion
No due date
Fixed Build trunk/29727
No time estimate

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