Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 16695 invoked from network); 21 Dec 2006 01:32:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Dec 2006 01:32:45 -0000 Received: (qmail 62918 invoked by uid 500); 21 Dec 2006 01:32:52 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 62823 invoked by uid 500); 21 Dec 2006 01:32:51 -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 62814 invoked by uid 99); 21 Dec 2006 01:32:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2006 17:32:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2006 17:32:43 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1DFD471429F for ; Wed, 20 Dec 2006 17:32:23 -0800 (PST) Message-ID: <11310815.1166664743119.JavaMail.jira@brutus> Date: Wed, 20 Dec 2006 17:32:23 -0800 (PST) From: "hai feng li (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-2198) Is it possible to insert a blob column into derby with sql instead of java? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Is it possible to insert a blob column into derby with sql instead of java? --------------------------------------------------------------------------- Key: DERBY-2198 URL: http://issues.apache.org/jira/browse/DERBY-2198 Project: Derby Issue Type: Test Components: SQL Environment: Linuxamd64 Reporter: hai feng li I create below 2 tables: CREATE TABLE clob_tb1 (int_col INTEGER, clob_col CLOB(300)); CREATE TABLE blob_tb1 (int_col INTEGER, blob_col BLOB(300)); For the table with clob column, below insert can work well: insert into clob_tb1 values(1,'This is the first row of the clob table'); For the table with blob column, below insert can not work: insert into blob_tb1 values (1,'0123456789abcdef0123456789abcdef0123456789abcedf'); I also tried below styles: insert into blob_tb1 values (1,X'0123456789abcdef0123456789abcdef0123456789abcedf'); It can not work either. Is there a way to do the insert with sql? Thanks! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira