X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.22.2a (ClamAV engine v0.102.2) From: "Theodore Petrosky" Received: from sonic302-21.consmr.mail.ne1.yahoo.com ([66.163.186.147] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.7) with ESMTPS id 26713049 for webobjects-dev@wocommunity.org; Sat, 30 Oct 2021 18:41:55 +0200 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=66.163.186.147; envelope-from=tedpet5@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1635612094; bh=0xL4NED9wq6IQsXF45Maz9EGt0cSOxPmEEm8XVHTOBA=; h=From:Subject:Date:References:To:In-Reply-To:From:Subject:Reply-To; b=q2jsTwZdDE33jRDVqBr88+cz2JfmMIFoRSjibcmA3fQ++29iQ2cGEWhm3sdF/pewpSD4fS0NYr98uPXeGjKSypY+g9S4c+LvGo5Jrg2+RDATh3tfe+NUusOFHbDbupFiy6VyVOUi4myUcrE9to7mZJJ3/nUgysaDBB1BuXDFNwaWQl9p3zlPkDnaeL2QbjzFuHbJ1zVgVWvcny/QEbIkDWq5Zs58tcLaHZLxWc//LekE90NEyMhQ74nfgOSCKCBBMdpO/31KxUPwhE8TWZYt5+Dpm0vEf0/ald+ZGvv0J09SyUi+yhMZ3vpIkUUnwpF+86KHs7V9yuM6cco8lX8OUQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1635612094; bh=8EkRFV0g42oRIRA7Kh1c/VALnGBQmaff7ow8y052MOF=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=S3kPVYrXTfzf9lEDiVxLMqqplPxpiudoC1mbzP2IAwVnZjRDg+jKmHcTa9y7SjNUsoZ45AbQJmhyqgc8nbtLTOGbLkfuiPLOiQJQoyKUHn12SgyV6NaqotDMIQQz064wgDd9OC/1ZcvMTRz0qhLxgQpi6QTmHRp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BRwuRd_mwbjEXTRvk2mtU8toyKDi3oUOn497FNad303rMmgqDyAxmjzuwLW731wRE2pybrKEt z.xbeqXNbKoAaPmYlV0PyMgvOTcPvZbmhDZQ6Iemg89YxqF1oRDWYWKGYk2IrjOIhBeiU_qX6ZAO TiyPo6N49_E_DlwhOlx310Dfi1aehl3CBGbnwCGudchU8saFhmkt9P2OtPnwr3o4VNczjrrhbwV1 TRzGRZf1YcLqhiMSBvjMuxAYYYl.Qbwm6UJY2_7P4LMREiyytjzNrLNAi5Ht5RrMJ1EERiwF7aEy .xYlp_cBxSxOkucEnP7ZFwAsIXZtaNoQj0epe X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Sat, 30 Oct 2021 16:41:34 +0000 Received: by kubenode508.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 888906fae0647a2630e9fa84f114e034; Sat, 30 Oct 2021 16:41:28 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: [WO-DEV] Postgresql jdbc driver upgrade not recommended Date: Sat, 30 Oct 2021 12:41:26 -0400 References: To: WebObjects In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3654.120.0.1.13) Content-Length: 4361 Well, I can confirm the same issue with jdbc postgresql-42.2.23.jar. = wonder 7.2 Ted > On Oct 29, 2021, at 6:00 AM, D Tim Cummings = wrote: >=20 > I have built a small app which demonstrates this behaviour. >=20 > https://github.com/timcu/wopg4230 >=20 > It is a very simple app with a database with one table with one record = with one field (other than the primary key). The app has one WOComponent = with one form with one text field and one save button. >=20 > It is a maven app but that makes it easy to swap between jdbc driver = versions. >=20 > I would be interested if other people see the same behaviour. You will = need to set up a postgresql database but I have put instructions on the = github README.md on how to do that. >=20 > Tim >=20 > On 27/10/21 20:06, D Tim Cummings wrote: >> Postgresql data type : Numeric(38,4) allows null >>=20 >> Java data type: BigDecimal >>=20 >> EOModel using prototype: currencyAmount >>=20 >> When number is first retrieved from database it has precision 10 = scale 4 eg 150000.0000 >>=20 >> I click the edit button which puts the number in a textfield which = has numberformat "$#,##0; ($#,##0)" and it displays as $150,000 >>=20 >> I click save button. Number in EO is now 150000 with precision 6 and = scale 0 >>=20 >> I run ec().saveChanges() where ec() is my editingContext. >>=20 >> Number in EO is still 150000 with precision 6 and scale 0 >>=20 >> I repeat the procedure "edit / save" several times and randomly the = number in EO eventually becomes 15 with precision 2 and scale 0. If it = happens before the saveChanges() then the new number gets saved to the = database. However it can happen after the save in which case my app sees = the small number but it doesn't get saved to database if I shutdown the = app at that point and start it up again. >>=20 >> It looks like a problem with my app except that it only started = happening with the new JDBC driver and reverting the JDBC driver removes = the problem. >>=20 >>=20 >> Tim >>=20 >>=20 >> On 27/10/21 18:48, Hugi Thordarson wrote: >>> Hi Tim, >>> out of curiosity, what's the data type of the number that's getting = truncated? (both the DB and java/model side) >>>=20 >>> - hugi >>>=20 >>>=20 >>>> On 27 Oct 2021, at 04:53, D Tim Cummings = wrote: >>>>=20 >>>> I just upgraded my postgresql jdbc driver from 42.2.23 to 42.3.0 = and suddenly any number returned from the database that ended in four = zeros was having the zeros trimmed. >>>>=20 >>>> For example >>>>=20 >>>> 150000 became 15 >>>>=20 >>>> This did not affect numbers ending in three zeros >>>>=20 >>>> 151000 stayed as 151000 >>>>=20 >>>> I am still looking for the cause but rolling back to 42.2.23 fixed = the problem. Problem was reproducible on Postgresql 10.18 on Ubuntu and = Postgresql 13.3 on Mac. >>>>=20 >>>> I am using Wonder 7.2 with Postgresql plugin. My project is defined = using the maven structure. I was using the postgresql jdbc driver in my = pom.xml with >>>>=20 >>>> >>>> org.postgresql >>>> postgresql >>>> 42.2.23 >>>> >>>>=20 >>>> Hope this helps >>>>=20 >>>> Tim >>>>=20 >>>>=20 >>>> >>>=20 >>> ############################################################# >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to = >>> To switch to the INDEX mode, E-mail to = >>> Send administrative queries to = >>>=20 >>=20 >> ############################################################# >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to = >> To switch to the INDEX mode, E-mail to = >> Send administrative queries to = >>=20 >