Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 621 invoked from network); 9 Dec 2005 21:57:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Dec 2005 21:57:41 -0000 Received: (qmail 82704 invoked by uid 500); 9 Dec 2005 21:57:31 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 82668 invoked by uid 500); 9 Dec 2005 21:57:30 -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 82658 invoked by uid 99); 9 Dec 2005 21:57:30 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2005 13:57:30 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 1E90618B for ; Fri, 9 Dec 2005 22:57:09 +0100 (CET) Message-ID: <606207895.1134165429008.JavaMail.jira@ajax.apache.org> Date: Fri, 9 Dec 2005 22:57:09 +0100 (CET) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-154) Network Client should not allow creation of statements with scroll sensitive read-only and updatable resultsets? In-Reply-To: <1212032891.1109285508745.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-154?page=all ] Kathey Marsden updated DERBY-154: --------------------------------- Component: Network Client (was: Network Server) Summary: Network Client should not allow creation of statements with scroll sensitive read-only and updatable resultsets? (was: Does Network Server support scroll sensitive read-only and updatable resultsets?) Description: Derby in embedded mode does not support scroll sensitive resultsets in both read-only and updatable modes. But when I write a simple test program in Network Server configuration, it appears that scroll sensitive resultsets are supported both in read-only and updatable modes. Is that correct? Connection con = DriverManager.getConnection("jdbc:derby:net://localhost:1527/db1drda;create=true:retrieveMessagesFromServerOnGetMessage=true:deferPrepares=false;", "app", "app"); Statement s = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY); SQLWarning warnings = con.getWarnings(); while (warnings != null) { System.out.println("warnings on connection = " + warnings); warnings = warnings.getNextWarning(); } System.out.println("Did we get TYPE_SCROLL_SENSITIVE? " + (s.getResultSetType() == ResultSet.TYPE_SCROLL_SENSITIVE)); System.out.println("Did we get CONCUR_READ_ONLY? " + (s.getResultSetConcurrency() == ResultSet.CONCUR_READ_ONLY)); s = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); System.out.println("Did we get TYPE_SCROLL_SENSITIVE? " + (s.getResultSetType() == ResultSet.TYPE_SCROLL_SENSITIVE)); System.out.println("Did we get CONCUR_UPDATABLE? " + (s.getResultSetConcurrency() == ResultSet.CONCUR_UPDATABLE)); And the output in Network Server mode for above test case is Did we get TYPE_SCROLL_SENSITIVE? true Did we get CONCUR_READ_ONLY? true Did we get TYPE_SCROLL_SENSITIVE? true Did we get CONCUR_UPDATABLE? true was: Derby in embedded mode does not support scroll sensitive resultsets in both read-only and updatable modes. But when I write a simple test program in Network Server configuration, it appears that scroll sensitive resultsets are supported both in read-only and updatable modes. Is that correct? Connection con = DriverManager.getConnection("jdbc:derby:net://localhost:1527/db1drda;create=true:retrieveMessagesFromServerOnGetMessage=true:deferPrepares=false;", "app", "app"); Statement s = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY); SQLWarning warnings = con.getWarnings(); while (warnings != null) { System.out.println("warnings on connection = " + warnings); warnings = warnings.getNextWarning(); } System.out.println("Did we get TYPE_SCROLL_SENSITIVE? " + (s.getResultSetType() == ResultSet.TYPE_SCROLL_SENSITIVE)); System.out.println("Did we get CONCUR_READ_ONLY? " + (s.getResultSetConcurrency() == ResultSet.CONCUR_READ_ONLY)); s = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); System.out.println("Did we get TYPE_SCROLL_SENSITIVE? " + (s.getResultSetType() == ResultSet.TYPE_SCROLL_SENSITIVE)); System.out.println("Did we get CONCUR_UPDATABLE? " + (s.getResultSetConcurrency() == ResultSet.CONCUR_UPDATABLE)); And the output in Network Server mode for above test case is Did we get TYPE_SCROLL_SENSITIVE? true Did we get CONCUR_READ_ONLY? true Did we get TYPE_SCROLL_SENSITIVE? true Did we get CONCUR_UPDATABLE? true Environment: > Network Client should not allow creation of statements with scroll sensitive read-only and updatable resultsets? > ----------------------------------------------------------------------------------------------------------------- > > Key: DERBY-154 > URL: http://issues.apache.org/jira/browse/DERBY-154 > Project: Derby > Type: Bug > Components: Network Client > Versions: 10.0.2.1 > Reporter: Mamta A. Satoor > > Derby in embedded mode does not support scroll sensitive resultsets in both read-only and updatable modes. But when I write a simple test program in Network Server configuration, it appears that scroll sensitive resultsets are supported both in read-only and updatable modes. Is that correct? > Connection con = DriverManager.getConnection("jdbc:derby:net://localhost:1527/db1drda;create=true:retrieveMessagesFromServerOnGetMessage=true:deferPrepares=false;", "app", "app"); > Statement s = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY); > SQLWarning warnings = con.getWarnings(); > while (warnings != null) > { > System.out.println("warnings on connection = " + warnings); > warnings = warnings.getNextWarning(); > } > System.out.println("Did we get TYPE_SCROLL_SENSITIVE? " + (s.getResultSetType() == ResultSet.TYPE_SCROLL_SENSITIVE)); > System.out.println("Did we get CONCUR_READ_ONLY? " + (s.getResultSetConcurrency() == ResultSet.CONCUR_READ_ONLY)); > s = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); > System.out.println("Did we get TYPE_SCROLL_SENSITIVE? " + (s.getResultSetType() == ResultSet.TYPE_SCROLL_SENSITIVE)); > System.out.println("Did we get CONCUR_UPDATABLE? " + (s.getResultSetConcurrency() == ResultSet.CONCUR_UPDATABLE)); > And the output in Network Server mode for above test case is > Did we get TYPE_SCROLL_SENSITIVE? true > Did we get CONCUR_READ_ONLY? true > Did we get TYPE_SCROLL_SENSITIVE? true > Did we get CONCUR_UPDATABLE? true -- 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