Bugs item #1964587, was opened at 2008-05-15 15:29
Message generated for change (Comment added) made by sjoerd
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1964587&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: Mapi
Group: Clients 1.22
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Fabian (mr-meltdown)
Assigned to: Sjoerd Mullender (sjoerd)
Summary: mclient doesn't dump multi-colum unique constraint correctly

Initial Comment:
sql>create table test_property(subject integer, p1 integer, p2 integer,
unique(subject, p1), unique(subject, p2));

sql>\d test_property
CREATE TABLE "sys"."test_property" (
        "subject" int,
        "p1" int,
        "p2" int,
        CONSTRAINT "test_property_subject_p2_unique" UNIQUE ("subject"),
        CONSTRAINT "test_property_subject_p1_unique" UNIQUE ("subject", "p2",
"p1")
);


Note that the two unique constraints are not dumped correctly, as one is dumped 
to be on "subject" alone, the other on "subject", "p2" and "p1".  It is a 
dumping problem, as the same code works fine with JdbcClient:


(pegasus:~) fabian% JdbcClient -dAnton                                          
Welcome to the MonetDB interactive JDBC terminal!                               
Database: MonetDB v5.5.0, 'Anton'                                               
Driver: MonetDB Native Driver v1.7 (Canephora_p2 20080319 based on MCL v1.2)    
Type \q to quit, \h for a list of available commands                            
auto commit mode: on                                                            
monetdb-> create table test_property(subject integer, p1 integer, p2 integer,   
monetdb=( unique(subject, p1), unique(subject, p2));                            
Operation successful                                                            
                                                                                
monetdb-> \d test_property                                                      
CREATE TABLE "sys"."test_property" (
        "subject" int,
        "p1"      int,
        "p2"      int,
        CONSTRAINT "test_property_subject_p1_unique" UNIQUE ("subject", "p1"),
        CONSTRAINT "test_property_subject_p2_unique" UNIQUE ("subject", "p2")
);
monetdb->


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

>Comment By: Sjoerd Mullender (sjoerd)
Date: 2008-05-15 16:19

Message:
Logged In: YES 
user_id=43607
Originator: NO

Fixed in CVS (stable branch--propagation will follow).

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

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to