<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/dbengine/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/dbengine/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 18 May 2002 13:45:32 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dbengine/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>1st column of VIEWs are chopped off</title><link>https://sourceforge.net/p/dbengine/bugs/7/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This is a general problem that appears to affect all&lt;br /&gt;
database clients (I'm using PostgreSQL).  The 1st&lt;br /&gt;
column of all VIEWs that are displayed as a list is cut&lt;br /&gt;
off.  I noticed this because I have a VIEW with only&lt;br /&gt;
one column.  No data appears when I look at this VIEW.&lt;/p&gt;
&lt;p&gt;Here is a patch (hack) that corrects this bug:&lt;/p&gt;
&lt;p&gt;[p-hoover util]$ cvs diff base.pl &lt;br /&gt;
Index: base.pl&lt;br /&gt;
===================================================================&lt;br /&gt;
RCS file: /cvsroot/dbengine/dbengine/util/base.pl,v&lt;br /&gt;
retrieving revision 1.10&lt;br /&gt;
diff -r1.10 base.pl&lt;br /&gt;
752c752&lt;br /&gt;
&amp;amp;lt;     $search = &amp;amp;quot;SELECT $fields FROM $table $suche $order&amp;amp;quot;;&lt;br /&gt;
---&lt;br /&gt;
&amp;amp;gt;     $search = &amp;amp;quot;SELECT 0 AS oid,$fields FROM $table&lt;br /&gt;
$suche $order&amp;amp;quot;;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sat, 18 May 2002 13:45:32 -0000</pubDate><guid>https://sourceforge.net84e7dc71dca8307c610597276c348ccb218757e2</guid></item><item><title>Not all underscores removed.</title><link>https://sourceforge.net/p/dbengine/bugs/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi.  With version 1.1 of dbengine, my tables&lt;br /&gt;
which have multiple underscores were displayed&lt;br /&gt;
with funny titles like&lt;br /&gt;
Summary Fund_cv&lt;br /&gt;
instead of&lt;br /&gt;
Summary Fund Cv&lt;/p&gt;
&lt;p&gt;I made fixes in base.pl for dbengine 1.1, and then&lt;br /&gt;
realized that the CVS code has been completely&lt;br /&gt;
rewritten (looks much better structured, compared to 1.1).&lt;/p&gt;
&lt;p&gt;I think you should be able to apply these changes&lt;br /&gt;
without any problem to your new code, although I&lt;br /&gt;
haven't tried it:&lt;/p&gt;
&lt;p&gt;sub CreateMenu() of base.pl version 1.10 (CVS):&lt;br /&gt;
Change&lt;br /&gt;
$disp_tablename =~ s/\W|_/ /o;&lt;br /&gt;
$disp_tablename =~ s/\W|_/ /o;&lt;br /&gt;
to&lt;br /&gt;
$disp_tablename =~ s/\W|_/ /go;&lt;br /&gt;
$disp_tablename =~ s/\W|_/ /go;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Dave.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Hoover</dc:creator><pubDate>Fri, 17 May 2002 15:51:59 -0000</pubDate><guid>https://sourceforge.net8078383451845c7d77fb95c943b97990cd0d89a4</guid></item><item><title>DBI not used in recommenede way</title><link>https://sourceforge.net/p/dbengine/bugs/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In the dbengine code, I repeatedly see the following&lt;br /&gt;
type of query code:&lt;br /&gt;
$comm = &amp;amp;quot;SELECT * FROM $table WHERE $uniqOID='$oid'&amp;amp;quot;;&lt;br /&gt;
$result = $dbconn-&amp;amp;gt;prepare($comm) ;&lt;br /&gt;
$result-&amp;amp;gt;execute;&lt;/p&gt;
&lt;p&gt;This is not recommended practice.  The way this should&lt;br /&gt;
be coded is (unless you have some good reason not to):&lt;/p&gt;
&lt;p&gt;$comm = &amp;amp;quot;SELECT * FROM ? WHERE $uniqOID=?&amp;amp;quot;;&lt;br /&gt;
$result = $dbconn-&amp;amp;gt;prepare($comm) ;&lt;br /&gt;
$result-&amp;amp;gt;execute($table,$oid);&lt;/p&gt;
&lt;p&gt;The DBD then makes substitutions for $table and $oid,&lt;br /&gt;
but it handles quotes and other strange characters&lt;br /&gt;
correctly.&lt;br /&gt;
By not using the placeholders ('?') correctly, you open&lt;br /&gt;
yourself up to bugs or security problems which may&lt;br /&gt;
occur because of tablenames with weird characters in&lt;br /&gt;
them (because simple perl substitution is not&lt;br /&gt;
appropriate).  Also, using the placeholders correctly&lt;br /&gt;
may result in a speed improvement of dbengine, and&lt;br /&gt;
fewer strange unexplainable bugs.&lt;/p&gt;
&lt;p&gt;Just a recommendation.  Would somebody like me to make&lt;br /&gt;
these changes to have them integrated into the source?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Hoover</dc:creator><pubDate>Fri, 17 May 2002 14:21:21 -0000</pubDate><guid>https://sourceforge.netf777e76c3464423bcb0022b4ce8e1cccee89e33b</guid></item><item><title>'edit' option provided for VIEWs</title><link>https://sourceforge.net/p/dbengine/bugs/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Now that I have VIEWs working (bugID 557185, 557202), I&lt;br /&gt;
realize that the dbengine 'list' presentation has an&lt;br /&gt;
'edit' option.  But due to the oid-based edit&lt;br /&gt;
programming, it is impossible to really edit a view--it&lt;br /&gt;
fails with an error.  This option should probably be&lt;br /&gt;
removed.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Hoover</dc:creator><pubDate>Fri, 17 May 2002 12:19:39 -0000</pubDate><guid>https://sourceforge.net2047dbfaacf9d4f7f45c8dd9f489e5648e23e741</guid></item><item><title>another PostgreSQL VIEW problem</title><link>https://sourceforge.net/p/dbengine/bugs/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Another problem I had trying to get VIEWs to work with&lt;br /&gt;
PostgreSQL 7.2.1, DBI-1.21, and DBD-Pg-1.13 is that in&lt;br /&gt;
base.pl it is assumed that the DBI function tables() is&lt;br /&gt;
going to return both tables and views.  But this is not&lt;br /&gt;
the case.  With DBD-Pg-1.13, only tables are returned.&lt;br /&gt;
Have the DBI people clearly stated somewhere what the&lt;br /&gt;
correct behavior is? Tables or tables+views?&lt;/p&gt;
&lt;p&gt;To fix this, it seems like dbengine should either have&lt;br /&gt;
database specific get_tables() function (which could&lt;br /&gt;
create a hash which also indicates if the table is&lt;br /&gt;
really a VIEW, so db_isView could be removed).  This&lt;br /&gt;
get_tables function could use the newer table_info&lt;br /&gt;
function instead of the deprecated tables() function.&lt;/p&gt;
&lt;p&gt;A quick fix for DBD-Pg is the following:&lt;br /&gt;
[p-hoover@iamac37 util]$ diff&lt;br /&gt;
/usr/lib/perl5/site_perl/5.6.0/ppc-linux/DBD/Pg.pm &lt;br /&gt;
/share/DBD-Pg/DBD-Pg-1.13/Pg.pm &lt;br /&gt;
190c190&lt;br /&gt;
&amp;amp;lt;             where  relkind IN ('r','v')&lt;br /&gt;
---&lt;br /&gt;
&amp;amp;gt;             where  relkind = 'r' &lt;/p&gt;
&lt;p&gt;Is this really a DBD-Pg bug? Should it be submitted to&lt;br /&gt;
the DBD-Pg maintainer?  Would it break other existing&lt;br /&gt;
client software?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Hoover</dc:creator><pubDate>Fri, 17 May 2002 12:15:22 -0000</pubDate><guid>https://sourceforge.net2857b9a6da759e6eae9ace6856908995d38f3339</guid></item><item><title>VIEWs don't work with PostgreSQL</title><link>https://sourceforge.net/p/dbengine/bugs/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;VIEWs on my linux machine do not work with PostgreSQL&lt;br /&gt;
7.2.1, DBI-1.21, and DBD-Pg-1.13.  The primary dbengine&lt;br /&gt;
problem is that the db_isView subroutine of postgres.pl&lt;br /&gt;
tries to determine if a table is really a view by using&lt;br /&gt;
dbdconn handle instead of dbconn.&lt;/p&gt;
&lt;p&gt;Patch:&lt;br /&gt;
[p-hoover@iamac37 util]$ diff postgres.pl.orig&lt;br /&gt;
postgres.pl.fix &lt;br /&gt;
52c52&lt;br /&gt;
&amp;amp;lt;    my $result = $dbdconn-&amp;amp;gt;prepare($cmd);&lt;br /&gt;
---&lt;br /&gt;
&amp;amp;gt;    my $result = $dbconn-&amp;amp;gt;prepare($cmd);&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Hoover</dc:creator><pubDate>Fri, 17 May 2002 12:06:04 -0000</pubDate><guid>https://sourceforge.netb1fcaa7bae7c5d84f81a64b19ac8c0ea3662c403</guid></item><item><title>Choice of Database can fail</title><link>https://sourceforge.net/p/dbengine/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I found that the choice mechanism in get_databse_type()&lt;br /&gt;
is weak since it's not predictable in which order the&lt;br /&gt;
@choices array gets filled.&lt;/p&gt;
&lt;p&gt;My MacOS X machine lists (1)Postgres,(2)Oracle,(3)MySQL&lt;br /&gt;
and the cis-computer.com FreeBSD machine lists&lt;br /&gt;
(1)MySQL,(2)Oracle,(3)Postgres....&lt;/p&gt;
&lt;p&gt;Since the code requires the choice of (1) for Postgres&lt;br /&gt;
things can get buggy here :-((&lt;/p&gt;
&lt;p&gt;--&lt;/p&gt;
&lt;p&gt;However, one can manually edit the generated file&lt;br /&gt;
base/confdat prior to &amp;amp;quot;make&amp;amp;quot; and/or the file&lt;br /&gt;
base/dbengine.cfg prior to &amp;amp;quot;make install&amp;amp;quot; to correct&lt;br /&gt;
the database setting.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ingo Ciechowski</dc:creator><pubDate>Mon, 17 Dec 2001 14:26:12 -0000</pubDate><guid>https://sourceforge.netea9c6130bc953bd159fdb402f03a0f1534618c6f</guid></item></channel></rss>