Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6F8E510605 for ; Tue, 19 Nov 2013 18:13:29 +0000 (UTC) Received: (qmail 55015 invoked by uid 500); 19 Nov 2013 18:13:27 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 53087 invoked by uid 500); 19 Nov 2013 18:13:23 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 52961 invoked by uid 99); 19 Nov 2013 18:13:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Nov 2013 18:13:21 +0000 Date: Tue, 19 Nov 2013 18:13:21 +0000 (UTC) From: "Mano (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-6418) 'SYSCS_UTIL.SYSCS_EXPORT_TABLE_LOBS_TO_EXTFILE' is not recognized as a function or procedure MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-6418?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1382= 6769#comment-13826769 ]=20 Mano commented on DERBY-6418: ----------------------------- I will try to upgrade it and try. Thanks for your reply. > 'SYSCS_UTIL.SYSCS_EXPORT_TABLE_LOBS_TO_EXTFILE' is not recognized as a fu= nction or procedure > -------------------------------------------------------------------------= ------------------- > > Key: DERBY-6418 > URL: https://issues.apache.org/jira/browse/DERBY-6418 > Project: Derby > Issue Type: Bug > Reporter: Mano > Priority: Blocker > > I am using derby database. Using a prepared statement and executing. I do= nt have problem with non-BLOB field tables. If a table has a blob and tryin= g to export to a file. Then this error comes. Please help me resolve it. I = think I am not giving the statement properly. Please guide me. Attaching my= code here. Thanks in advance. > java.sql.PreparedStatement statement =3D connect.prepareStatement("CALL = SYSCS_UTIL.SYSCS_EXPORT_TABLE_LOBS_TO_EXTFILE(?,?,?,?,?,?,?)"); > statement.setString(1, null); > statement.setString(2, "xyz"); > statement.setString(3, "c:/derbytest/xyz.csv"); > statement.setString(4, null); > statement.setString(5, null); > statement.setString(6, null); > statement.setString(7, "c:/derbytest/xyz.dat"); > statement.executeUpdate(); > statement.close(); > Here is the error: Caused by: org.apache.derby.client.am.SqlException: 'S= YSCS_UTIL.SYSCS_EXPORT_TABLE_LOBS_TO_EXTFILE' is not recognized as a functi= on or procedure. at org.apache.derby.client.am.Statement.completeSqlca(Unkn= own Source) at org.apache.derby.client.net.NetStatementReply.parsePrepareEr= ror(Unknown Source) at org.apache.derby.client.net.NetStatementReply.parseP= RPSQLSTTreply(Unknown Source) at org.apache.derby.client.net.NetStatementRe= ply.readPrepare(Unknown Source) at org.apache.derby.client.net.StatementRep= ly.readPrepare(Unknown Source) at org.apache.derby.client.net.NetStatement.= readPrepare_(Unknown Source) at org.apache.derby.client.am.Statement.readPr= epare(Unknown Source) at org.apache.derby.client.am.PreparedStatement.readP= repareDescribeInput(Unknown Source) at org.apache.derby.client.am.PreparedS= tatement.flowPrepareDescribeInputOutput(Unknown Source) at org.apache.derby= .client.am.PreparedStatement.prepare(Unknown Source) at org.apache.derby.cl= ient.am.Connection.prepareStatementX(Unknown Source) ... 3 more -- This message was sent by Atlassian JIRA (v6.1#6144)