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 722C1957D for ; Fri, 3 Feb 2012 17:12:20 +0000 (UTC) Received: (qmail 65250 invoked by uid 500); 3 Feb 2012 17:12:19 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 64982 invoked by uid 500); 3 Feb 2012 17:12:18 -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 64973 invoked by uid 99); 3 Feb 2012 17:12:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2012 17:12:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2012 17:12:16 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 46E1718BC9F for ; Fri, 3 Feb 2012 17:11:55 +0000 (UTC) Date: Fri, 3 Feb 2012 17:11:55 +0000 (UTC) From: "Dag H. Wanvik (Commented) (JIRA)" To: derby-dev@db.apache.org Message-ID: <77414682.8179.1328289115292.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1405498157.7811.1328285034101.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-5597) Add support for a SQL REPLACE(in, search, replace) function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-5597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13199871#comment-13199871 ] Dag H. Wanvik commented on DERBY-5597: -------------------------------------- Note that this function is not a part of the SQL standard. We are normally cautious about adding non-standard features. If we did, I'd want it to have regexp functionality.. > Add support for a SQL REPLACE(in, search, replace) function > ----------------------------------------------------------- > > Key: DERBY-5597 > URL: https://issues.apache.org/jira/browse/DERBY-5597 > Project: Derby > Issue Type: Improvement > Components: SQL > Affects Versions: 10.8.2.2 > Reporter: Lukas Eder > Labels: function, sql, string > > I don't know any other database that lacks this type of function (even SQLite has it): > REPLACE(in, search) > REPLACE(in, search, replace) > But according to the Derby docs, this doesn't exist in Derby: > http://db.apache.org/derby/docs/10.8/ref/rrefsqlj29026.html > It would be quite simple to implement, I guess. Yet really useful for many people. Some documentation examples from other databases: > http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions134.htm > http://msdn.microsoft.com/de-de/library/ms186862.aspx > http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=%2Fcom.ibm.db2.doc.sqlref%2Ffrepl.htm > http://dev.mysql.com/doc/refman/5.1/en/string-functions.html#function_replace > http://hsqldb.org/doc/2.0/guide/builtinfunctions-chapt.html#N135A7 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira