Overview
Artifact ID: | 85469c2b61d18d8c5076a0c49107df93be4789f3 |
---|---|
Ticket: | 2e14854f4f65874b001962b8b55232baf1fa6872
[db columns table] doesn't recognize schema names |
User & Date: | anonymous 2015-09-02 16:33:04 |
Changes
- foundin changed to: "1.0.0"
- icomment:
A console session to illustrate the problem follows below. Note that the documentation says: <p> "The columns object command allows the program to query the connection for the names of columns that exist in a <b>given</b> table." <p>In Postgres you identify tables by a fully qualified name, using the following name convention: <schema name>.<table name> <p><hr> Main console display active (Tcl8.6.4 / Tk8.6.4)<p> (System32) 49 % package require tdbc::postgres<p> <i>1.0.0</i><p> (System32) 50 % tdbc::postgres::connection create db -user postgres -password postgres -db mydb<p> <i>::db</i><p> (System32) 51 % db allrows {create schema myschema}<p> (System32) 52 % db allrows {create table myschema.mytable (id serial primary key, field1 text)}<p> (System32) 53 % db columns myschema.mytable field1<p> (System32) 54 % db columns mytable field1<p> <i>relation "mytable" does not exist</i><p> (System32) 55 % db allrows {set search_path=myschema,public}<p> (System32) 56 % db columns mytable field1<p> <i>field1 {name field1 type text nullable 1}<i><p> (System32) 57 % <p>
- login: "anonymous"
- mimetype: "text/html"
- private_contact changed to: "d589dc7c7c01830a044ad802b0b879d59058bd84"
- severity changed to: "Severe"
- status changed to: "Open"
- title changed to: "[db columns table] doesn't recognize schema names"
- type changed to: "Code_Defect"