<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 1527: Postgresql: Some Objects-&gt;Table tabs have problems with mixed-case table names</title><link>https://sourceforge.net/p/squirrel-sql/bugs/1527/</link><description>Recent changes to 1527: Postgresql: Some Objects-&gt;Table tabs have problems with mixed-case table names</description><atom:link href="https://sourceforge.net/p/squirrel-sql/bugs/1527/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 17 May 2024 22:27:44 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/squirrel-sql/bugs/1527/feed.rss" rel="self" type="application/rss+xml"/><item><title>#1527 Postgresql: Some Objects-&gt;Table tabs have problems with mixed-case table names</title><link>https://sourceforge.net/p/squirrel-sql/bugs/1527/?limit=25#520d</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;code&gt;create table sf_bug_no_1527."VersionInfo"&lt;/code&gt;&lt;br/&gt;
worked for me and I can now reproduce the problem. &lt;/p&gt;
&lt;p&gt;To solve the problem go to menu File --&amp;gt; Global Preferences --&amp;gt; tab SQL Scripts and check&lt;br/&gt;
"Qualify table names in generated scripts with the schema name"&lt;br/&gt;
and&lt;br/&gt;
"Use double quotes (") for qualifying"&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gerd Wagner</dc:creator><pubDate>Fri, 17 May 2024 22:27:44 -0000</pubDate><guid>https://sourceforge.net15b2f6ce02aad8cfe386f61dcdfb3cabd9b29df1</guid></item><item><title>#1527 Postgresql: Some Objects-&gt;Table tabs have problems with mixed-case table names</title><link>https://sourceforge.net/p/squirrel-sql/bugs/1527/?limit=25#f256</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Sorry, I can't reproduce your problem. Heres my system:&lt;br/&gt;
Suse Linux Leap 15.5&lt;br/&gt;
Open JDK 11.0.10+9&lt;br/&gt;
Postgres 16.3 hosted locally&lt;br/&gt;
Postgres JDBC 42.7.3&lt;/p&gt;
&lt;p&gt;Here's the script I used:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;create schema sf_bug_no_1527

create table sf_bug_no_1527.VersionInfo
(
versId integer not NULL PRIMARY KEY,
versName Varchar(200)
)

INSERT INTO sf_bug_no_1527.VersionInfo(versId,versName) VALUES (1, 'Ver1');
INSERT INTO sf_bug_no_1527.VersionInfo(versId,versName) VALUES (2, 'Vers2');
INSERT INTO sf_bug_no_1527.VersionInfo(versId,versName) VALUES (3, 'Vers3');

SELECT &lt;span class="gs"&gt;* FROM sf_bug_no_1527.VersionInfo&lt;/span&gt;


&lt;span class="gs"&gt;create table sf_bug_no_1527.versioninfozwei&lt;/span&gt;
&lt;span class="gs"&gt;(&lt;/span&gt;
&lt;span class="gs"&gt;vers2Id integer not NULL PRIMARY KEY,&lt;/span&gt;
&lt;span class="gs"&gt;vers2Name Varchar(200)&lt;/span&gt;
&lt;span class="gs"&gt;)&lt;/span&gt;

&lt;span class="gs"&gt;INSERT INTO sf_bug_no_1527.versioninfozwei(vers2Id,vers2Name) VALUES (10, 'Vers10');&lt;/span&gt;
&lt;span class="gs"&gt;INSERT INTO sf_bug_no_1527.versioninfozwei(vers2Id,vers2Name) VALUES (20, 'Vers20');&lt;/span&gt;
&lt;span class="gs"&gt;INSERT INTO sf_bug_no_1527.versioninfozwei(vers2Id,vers2Name) VALUES (30, 'Vers30');&lt;/span&gt;

&lt;span class="gs"&gt;SELECT *&lt;/span&gt; FROM sf_bug_no_1527.versioninfozwei
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gerd Wagner</dc:creator><pubDate>Thu, 16 May 2024 17:48:17 -0000</pubDate><guid>https://sourceforge.net08dd1b6ba2189339ed67ad4fa1be732536334414</guid></item><item><title>#1527 Postgresql: Some Objects-&gt;Table tabs have problems with mixed-case table names</title><link>https://sourceforge.net/p/squirrel-sql/bugs/1527/?limit=25#cfe8</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Argh!&lt;/p&gt;
&lt;p&gt;&lt;code&gt;SELECT * FROM {schema}."VersionInfo";&lt;/code&gt; (quoted) works properly in the SQL tab.&lt;/p&gt;
&lt;p&gt;Copied that at the wrong point in my repro testing and SF doesn't let your edit your bug reports.&lt;/p&gt;
&lt;p&gt;:facepalm&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Hardin</dc:creator><pubDate>Sat, 06 Apr 2024 18:35:30 -0000</pubDate><guid>https://sourceforge.net8d33df4e90f28fbb15975df7e3e58853ce45a9a6</guid></item><item><title>Postgresql: Some Objects-&gt;Table tabs have problems with mixed-case table names</title><link>https://sourceforge.net/p/squirrel-sql/bugs/1527/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When viewing Postgres table metadata in the Objects UI, some of the tabs do not properly retrieve the table data if the table name contains any uppercase characters.&lt;/p&gt;
&lt;p&gt;Repro:&lt;br/&gt;
1. Create a table with a mixed-case name (e.g. &lt;code&gt;VersionInfo&lt;/code&gt;) and insert some rows&lt;br/&gt;
2. Create another table in the same schema with an all-lowercase name and insert some rows&lt;br/&gt;
3. Refresh object tree and metadata cache&lt;br/&gt;
4. In the &lt;strong&gt;Objects&lt;/strong&gt; tab open &lt;strong&gt;&lt;em&gt;{conn}&lt;/em&gt;-&amp;gt;&lt;em&gt;{schema}&lt;/em&gt;-&amp;gt;Table-&amp;gt;VersionInfo&lt;/strong&gt;&lt;br/&gt;
5. &lt;strong&gt;Info&lt;/strong&gt; tab displays correctly&lt;br/&gt;
6. &lt;strong&gt;Content&lt;/strong&gt; tab is empty even though there are rows&lt;br/&gt;
7.  &lt;strong&gt;Row Count&lt;/strong&gt; tab is empty even though there are rows (it doesn't even display zero)&lt;br/&gt;
8.  &lt;strong&gt;Columns&lt;/strong&gt; tab displays correctly, as do the remaining tabs (apparently)&lt;br/&gt;
9.  Click on the other table in the schema, having the all-lowercase name&lt;br/&gt;
10.  &lt;strong&gt;Info&lt;/strong&gt; tab displays correctly&lt;br/&gt;
11.  &lt;strong&gt;Content&lt;/strong&gt; tab displays correctly&lt;br/&gt;
12.  &lt;strong&gt;Row Count&lt;/strong&gt; tab displays correctly&lt;br/&gt;
13.  Click back on the mixed-case-name table&lt;br/&gt;
14.  &lt;strong&gt;Info&lt;/strong&gt; tab displays correctly&lt;br/&gt;
15.  &lt;strong&gt;Content&lt;/strong&gt; tab is empty even though there are rows&lt;br/&gt;
16.   &lt;strong&gt;Row Count&lt;/strong&gt; tab is empty even though there are rows (it doesn't even display zero)&lt;/p&gt;
&lt;p&gt;It looks like there's a problem with quoting table names in the queries underlying those two tabs when the table name is not all-lowercase, as &lt;code&gt;SELECT * FROM {schema}.VersionInfo;&lt;/code&gt; works properly in the SQL tab.&lt;/p&gt;
&lt;p&gt;Environment:&lt;br/&gt;
Windows 11 64-bit&lt;br/&gt;
Squirrel 4.7.1 standard (build number is not available in About dialog :(  - downloaded 2024-04-04)&lt;br/&gt;
Adoptium OpenJDK 21.0.2+13-LTS 64bit&lt;br/&gt;
Postgres 16.2 hosted locally&lt;br/&gt;
Postgres JDBC 42.7.1&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Hardin</dc:creator><pubDate>Sat, 06 Apr 2024 18:28:53 -0000</pubDate><guid>https://sourceforge.nete8447363bc210d729ebeb8f682150240c0b64f62</guid></item></channel></rss>