Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YYcez-000456-TO for pgsql-bugs@arkaria.postgresql.org; Thu, 19 Mar 2015 15:47:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YYcez-0005rJ-BK for pgsql-bugs@arkaria.postgresql.org; Thu, 19 Mar 2015 15:47:01 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YYcey-0005rB-JR for pgsql-bugs@postgresql.org; Thu, 19 Mar 2015 15:47:00 +0000 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YYcev-0005R5-F1 for pgsql-bugs@postgresql.org; Thu, 19 Mar 2015 15:46:58 +0000 Received: by wixw10 with SMTP id w10so73098846wix.0 for ; Thu, 19 Mar 2015 08:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:reply-to:to:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; bh=UtWKyiRCag8F/CeywjC9OWXQ6LdsKDIBdt1yJ/vjroM=; b=RHPt7ncs37KX2T2PYQrjyzTMunAQJAcZ+dpB4Q50XL+w8ZarMdKV26vp8gcq1gxFB9 UqxGH4HkMtCRk0j3PjdU2jiGMYEFPW8ztBw3j2Qf3PSH1RSNTc/nJ1s/3qkfRzi69Y7h zSrkqeQUkWq/YTXRJQnslDM4ypXPvk/FWOoLRveH/OKuhKxwC0EF2iGHvXCeE3aU/+CG 6SIvRHw/QiN3nOqaSiLJToRz9S8/7p6j6bPQRB5hFc98B26VCXPhIj8xGL9EkPTN9xXH nGRMN+QFS9Sz+6eNSSnucVmH+yfd4hCdg1trX5L80DxdUiaZwu5NuMAy+9ysSXTiEAxE sOXg== X-Received: by 10.180.108.13 with SMTP id hg13mr17324145wib.7.1426780015659; Thu, 19 Mar 2015 08:46:55 -0700 (PDT) Received: from enterprisedb01 (84.125.177.156.dyn.user.ono.com. [84.125.177.156]) by mx.google.com with ESMTPSA id gj16sm2940774wic.24.2015.03.19.08.46.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Mar 2015 08:46:54 -0700 (PDT) Message-ID: <1426780009.8296.4.camel@gmail.com> Subject: Re: BUG #12878: Update fails with ODBC driver 9.0.3.400 From: jaime soler Reply-To: jaime.soler@gmail.com To: rstefan@perceptron.com Cc: pgsql-bugs@postgresql.org Date: Thu, 19 Mar 2015 16:46:49 +0100 In-Reply-To: <20150318191321.2730.21636@wrigleys.postgresql.org> References: <20150318191321.2730.21636@wrigleys.postgresql.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org El mié, 18-03-2015 a las 19:13 +0000, rstefan@perceptron.com escribió: > The following bug has been logged on the website: > > Bug reference: 12878 > Logged by: Ralph Stefan > Email address: rstefan@perceptron.com > PostgreSQL version: 9.2.10 > Operating system: Windows 7 > Description: > > I have a problem with the 9.0.3.400 ODBC driver. Using a C++ client using > CRecordSet, the update method fails. The ODBC driver is now expanding a > double to 17 or 18 digits of precision. In version 9.0.3.300 and lower, it > only expanded it to 16 digits of precision. Here is the SQL log for an > update in version 9.0.3.300: > > UPDATE SP_MEMS_LIGHTSOURCE_OPTIONS SET > start_x='-0.0819098162202559',start_y='-0.288030017956869',end_x='0.0959545102741697',end_y='0.270450291244762',number_of_lines=10,cycle_time=480,exposure=5946,min_clipz='-20',max_clipz='20',min_exposure=500,max_exposure=10000 > WHERE "options_id" = 10009 AND "lightsource_order" = 0 AND "surface_id" = > 10007 AND "lightsource_type" = 1 AND "pattern_type" = 0 AND "start_x" = > '-0.28' AND "start_y" = '-0.32' AND "end_x" = '0.32' AND "end_y" = '0.26' > AND "number_of_lines" = 20 AND "cycle_time" = 800 AND "samples_per_second" = > 50000 AND "horizontal_speed" = 0 AND "vertical_speed" = 0 AND "scan_rate" = > 25 AND "exposure" = 6196 AND "gain" = 3 AND "mode" = 1 AND "continuous" = 0 > AND "disable_interpolation" = 0 AND "disable_filter" = 0 AND "min_clipz" = > '-50' AND "max_clipz" = '50' AND "rotation" = '0' AND "algorithm" = 2 AND > "min_exposure" = 0 AND "max_exposure" = 0 AND "laser_modulation" = 0 AND > "allow_updates" = 1 > > Here is the same update in 9.0.3.400 > > UPDATE SP_MEMS_LIGHTSOURCE_OPTIONS SET > start_x='-0.081909816220255879',start_y='-0.288030017956869',end_x='0.09595451027416968',end_y='0.27045029124476166',number_of_lines=10,cycle_time=480,exposure=5946,min_clipz='-20',max_clipz='20',min_exposure=500,max_exposure=10000 > WHERE "options_id" = 10019 AND "lightsource_order" = 0 AND "surface_id" = > 10017 AND "lightsource_type" = 1 AND "pattern_type" = 0 AND "start_x" = > '-0.28000000000000003' AND "start_y" = '-0.32000000000000001' AND "end_x" = > '0.32000000000000001' AND "end_y" = '0.26000000000000001' AND > "number_of_lines" = 20 AND "cycle_time" = 800 AND "samples_per_second" = > 50000 AND "horizontal_speed" = 0 AND "vertical_speed" = 0 AND "scan_rate" = > 25 AND "exposure" = 6196 AND "gain" = 3 AND "mode" = 1 AND "continuous" = 0 > AND "disable_interpolation" = 0 AND "disable_filter" = 0 AND "min_clipz" = > '-50' AND "max_clipz" = '50' AND "rotation" = '0' AND "algorithm" = 2 AND > "min_exposure" = 0 AND "max_exposure" = 0 AND "laser_modulation" = 0 AND > "allow_updates" = 1 > > With the additional garbage digit of precision, the update now fails. Could you send this info to pgsql-odbc@postgresql.org ? > > > -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs