bash - MonetDB doesn't recognize function names given to mclient via command line -


I am trying to export some columns from the table as an encoded integer. Actually I want to use a Bash script to pass the SQL command as the mclient command line argument. My bass looks like a script:

  #! / Bin / bash dir = `pwd` in the original country for Colonel Country Marshall_Status race gender correspondent-D adult- s \" encoding function $ {col} (s varchar (200)) returns return return ($ {col}) Select code} _dict where $ {col} = s); end; "'$ {Dir} / $ {col} .txt' in NULL as '0' in" mclient -d adult -s \ "(adult encoded $ {Col} ($ col) Select "End encoding function $ {col}"  

In each recurrence, I want to create a SQL function on the fly. Then use the function to encode a feature and export it to a text file and finally drop the function.

However, there are surprisingly some monster characters in production, such that it can not recognize the name of the function. If I remove the second mclient command, other operations are successful. Operation Successful Function 'X.X' Not Defined Operation Successful Operation Successful Function '' X.X 'Operation Not Successful Operations Successful Operation' X .PX 'Not Defined


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -