Bugs item #2925674, was opened at 2010-01-04 10:37
Message generated for change (Settings changed) made by mbucc
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2925674&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SQL/Core
>Group: Clients CVS Head
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mark Bucciarelli (mbucc)
Assigned to: Niels Nes (nielsnes)
Summary: mclient dump fails on UTF-8 char and gives no error

Initial Comment:
This is the Nov. 09 branch, built from CVS.

The mclient -D option stops dead when it hits a field with a UTF-8 character.
In addition, the return value to the shell is zero, indicating no error.

See attached test files that create this scenario on my machine.

Note that I can run

         $ cat test6.sql

just fine, so it's not something related to the locale setting for my
terminal.

(Furthermore, I believe if piping to stdout to a file, it shouldn't even
matter what the locale setting for the terminal is.)

This is a really bad one--if you are using dump for backups mclient 
gives no indication that there was an error.

----------------------------------------------------------------------

Comment By: Mark Bucciarelli (mbucc)
Date: 2010-01-04 12:20

Message:
Sorry, this was against an old (two weeks?) checkout of CVS head.

When I ran the test files against 2009_Nov, the test passed.  I'll leave
it open
in case it really is an issue for HEAD.

----------------------------------------------------------------------

Comment By: Mark Bucciarelli (mbucc)
Date: 2010-01-04 10:39

Message:
If you run inside mclient interactive shell, it also fails:

sql>select * from city;
+------+------+------+------+------------------------+------------------------+------+------+------+
| id   | name | regi | int1 | lat                    | long               
   | int2 | int3 | int4 |
:      :      : on   :      :                        :                    
   :      :      :      :
+======+======+======+======+========================+========================+======+======+======+
|  198 | Gjak | Euro |    0 |     20.430799484252901 |    
42.380298614502003 |    0 |    0 | null |
:      :1 tuple
write error
sql>\D                 
START TRANSACTION;
SET SCHEMA "test";
CREATE TABLE "test"."city" (
        "id"     int,
        "name"   varchar(100),
        "region" varchar(100),
        "int1"   int,
        "lat"    double,
        "long"   double,
        "int2"   int,
        "int3"   int,
        "int4"   int
);
COPY 1 RECORDS INTO "test"."city" FROM stdin USING DELIMITERS
'\t','\n','"';
198     "Gjakovsql>


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2925674&group_id=56967

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to