pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: thanhhv26@gmail.com
Subject:  BUG #15637: Problem insert data 【Japanese】
Date: Fri, 15 Feb 2019 02:43:02 +0000
Message-ID: <15637-4189f44523cbafd9@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15637
Logged by:          Thanh Huynh Van
Email address:      thanhhv26@gmail.com
PostgreSQL version: 11.1
Operating system:   Window Server 2012 Standard
Description:        

I created table has a column 【"C_VAL" character varying(10)】 after that I
insert data【'不具合管理報告書': length=24】. It was inserted successfully => this is
problem.
* Details:
-- Step 1: Create table. Data length of "C_VAL" column = 10
create table "USER02"."T_331_VARCHAR" (
  "ID" numeric not null
  , "C_VAL" character varying(10)
  , primary key ("ID")
);
-- Step 2: Check data length. OCTET_LENGTH('不具合管理報告書') = 24
SELECT OCTET_LENGTH('不具合管理報告書');
-- Step 3: Insert data. Length '不具合管理報告書' = 24
INSERT INTO "USER02"."T_331_VARCHAR"("ID", "C_VAL")
VALUES(1,'不具合管理報告書');
-- Step 4: Check length of inserted data
SELECT OCTET_LENGTH("C_VAL"), * FROM "USER02"."T_331_VARCHAR";
=> Why 【Step 3】was successful ?. Can you help me ?
Thank you !



view thread (3+ messages)  latest in thread

Message-ID: <15637-4189f44523cbafd9@postgresql.org>
Permalink:  ../15637-4189f44523cbafd9@postgresql.org/
Also on:    postgresql.org/message-id/15637-4189f44523cbafd9@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, thanhhv26@gmail.com
  Subject: Re: BUG #15637: Problem insert data 【Japanese】
  In-Reply-To: <15637-4189f44523cbafd9@postgresql.org>
  References: <15637-4189f44523cbafd9@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox