× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
Ananya(*) reported 2014-10-06T08:54:57Z  · SachinPrakash last modified 2014-11-20T20:19:54Z

Postgres: Should money data type with paranthesis be treated negative while importing to the database


Dev
John LH
JohnLH
QA
Tariq Rahiman
tariqrahiman
Priority Low
Complexity Unknown
Component Tools - Import Tool
Version Future
Product: Aqua Data Studio
Version: 15.0.7-23
Build #: 40450
Build Date: 2014-Oct-03 09:43:41 AM
 
Operating Environment: Windows 7 (6.1, amd64) / Cp1252 / en / US / Oracle Corporation 1.7.0_60-b19
Memory: Max=704,643,072;  Total=358,088,704;  Free=183,686,192;  CPUs=8
  1. Connect to PostgreSQL database.
  2. Double-click Databases to expand the node.
  3. Again double-click on any database node to expand it.
  4. Right-click on "public" schema, and click Query Analyzer.
  5. Run the below script on Query Analyzer pane.
    create table insert (
    col_varchar varchar,
    col_money money
    );
  6. Import data to the table using the attached file (InsertData.txt).
    a) Delimited: ,
    b) String Quoted Identifier: "
    c) Destination: Preview INSERT statement
Issue: In the preview statement, ADS removes the paranthesis. Hence the value is inserted as positive record.
 
Observation:
 
a) If I insert data to any table using the insert statement, then the data in paranthesis is inserted as negative data.
 
b) According to property of import data tool,  special characters and alphabetical characters are ignored for numeric data types. Only the numeric value is imported. 
 
For money data type, if insert statement allows to paranthesis, then the same is expected while importing data.
 
Current result:
 
INSERT INTO public.insert(col_varchar, col_money)
  VALUES('A', '5'::money)
GO
INSERT INTO public.insert(col_varchar, col_money)
  VALUES('b', '7'::money)
GO
 
Expected Result:
 
INSERT INTO public.insert(col_varchar, col_money)
  VALUES('A', '5'::money)
GO
INSERT INTO public.insert(col_varchar, col_money)
  VALUES('b', '(7)'::money)
GO
 
1 attachment

Issue #12539

Closed
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017