pg.ddx.io pgsql-odbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
SQLDescribeCol – schema cache not being updated completely? 3+ messages / 2 participants [nested] [flat]
* SQLDescribeCol – schema cache not being updated completely? @ 2011-05-05 14:38 Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de> 2011-07-18 10:49 ` Re: SQLDescribeCol – schema cache not being updated completely? BGoebel <b.goebel@prisma-computer.de> 2011-11-23 21:46 ` Re: SQLDescribeCol – schema cache not being updated completely? BGoebel <b.goebel@prisma-computer.de> 0 siblings, 2 replies; 3+ messages in thread From: Jan-Peter Seifert @ 2011-05-05 14:38 UTC (permalink / raw) To: pgsql-odbc Hello, we looked into a problem caused by some changes to a db’s schema via psqlODBC - e.g.: Creating table: SQLExecDirect(stmt, ‘CREATE TABLE tab1 (sp1 character varying(10));’, SQL_NTS) Selecting from column: SQLExecDirect(stmt, ‘SELECT sp1 from tab1’, SQL_NTS) Getting column description: SQLDescribeCol(stmt, 1, …) => ColumnName = "sp1", DataType = SQL_VARCHAR=12, ColumnSize = 10, DecimalDigits = 0, Nullable = SQL_NULLABLE=1 SQLCloseCursor(stmt); Altering the column: SQLExecDirect(stmt, ‘ALTER TABLE tab1 ALTER COLUMN sp1 TYPE char(25);’, SQL_NTS) SQLExecDirect(stmt, ‘ALTER TABLE tab1 ALTER COLUMN sp1 SET NOT NULL;’, SQL_NTS) Selecting from column again: SQLExecDirect(stmt, ‘SELECT sp1 from tab1’, SQL_NTS) Getting new column description: SQLDescribeCol(stmt, 1, …)=> ColumnName = "sp1", DataType = SQL_CHAR=1, ColumnSize = 10, DecimalDigits = 0, Nullable = SQL_NULLABLE=1 Obviously the Datatype information has been updated but ColumnSize und SQL_NULLABLE have been not. It’s the same for DecimalDigits/SQL_NUMERIC This has been tested with version 8.04.02.00 and 9.00.02.00 of psqlODBC. Could you check into this, please? Thank you very much, Peter P.S. Is there a way to flush/refresh this ‘schema’ cache completely or for a single table 'manually' during runtime? -- NEU: FreePhone - kostenlos mobil telefonieren und surfen! Jetzt informieren: http://www.gmx.net/de/go/freephone ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: SQLDescribeCol – schema cache not being updated completely? 2011-05-05 14:38 SQLDescribeCol – schema cache not being updated completely? Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de> @ 2011-07-18 10:49 ` BGoebel <b.goebel@prisma-computer.de> 1 sibling, 0 replies; 3+ messages in thread From: BGoebel @ 2011-07-18 10:49 UTC (permalink / raw) To: pgsql-odbc Hello, i have posted a similar item: http://postgresql.1045698.n5.nabble.com/Error-Retrieving-Catalog-Info-tt4598955.html Maybe it is helpful. regards BGoebel -- View this message in context: http://postgresql.1045698.n5.nabble.com/SQLDescribeCol-schema-cache-not-being-updated-completely-tp4... Sent from the PostgreSQL - odbc mailing list archive at Nabble.com. ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: SQLDescribeCol – schema cache not being updated completely? 2011-05-05 14:38 SQLDescribeCol – schema cache not being updated completely? Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de> @ 2011-11-23 21:46 ` BGoebel <b.goebel@prisma-computer.de> 1 sibling, 0 replies; 3+ messages in thread From: BGoebel @ 2011-11-23 21:46 UTC (permalink / raw) To: pgsql-odbc The problem is fixed. solution is found http://pgfoundry.org/scm/?group_id=1000125 (sources) i think binaries will following soon. regards -- View this message in context: http://postgresql.1045698.n5.nabble.com/SQLDescribeCol-schema-cache-not-being-updated-completely-tp4... Sent from the PostgreSQL - odbc mailing list archive at Nabble.com. ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2011-11-23 21:46 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2011-05-05 14:38 SQLDescribeCol – schema cache not being updated completely? Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de> 2011-07-18 10:49 ` BGoebel <b.goebel@prisma-computer.de> 2011-11-23 21:46 ` BGoebel <b.goebel@prisma-computer.de>
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