<?xml version="1.0" encoding="utf-8"?>
<!--  RSS generated by Flaimo.com RSS Builder [2010-07-30 02:43:22]  --> <rss version="2.0" xmlns:im="http://purl.org/rss/1.0/item-images/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" >
<channel>
<docs>http://ritmark.com/mantis/</docs>
<description>Mantis - ISSUES</description>
<link>http://ritmark.com/mantis/</link>
<title>Mantis - ISSUES</title>
<image>
<title>Mantis - ISSUES</title>
<url>http://ritmark.com/mantis/images/mantis_logo_button.gif</url>
<link>http://ritmark.com/mantis/</link>
<description>Mantis - ISSUES</description>
</image>
<category>All Projects</category>
<ttl>10</ttl>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<sy:updateBase>2010-07-30T02:43:22+03:00</sy:updateBase>
<item>
<title>0000016: Build errors</title>
<link>http://ritmark.com/mantis/view.php?id=16</link>
<description>Sorry, not technically a crash but seemed to be the best available category.&lt;br /&gt;
&lt;br /&gt;
I'm getting some build errors on Ubuntu Karmic (GCC 4:4.4.1-1ubuntu2 ) (UINT_MAX not defined, stdio and stlib errors)&lt;br /&gt;
&lt;br /&gt;
Adding:&lt;br /&gt;
&lt;br /&gt;
#include &lt;climits&gt;&lt;br /&gt;
&lt;br /&gt;
to qot_ddl.h&lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
&lt;br /&gt;
#include &lt;stdlib.h&gt;&lt;br /&gt;
#include &lt;stdio.h&gt;&lt;br /&gt;
&lt;br /&gt;
to  qot_app_args.cpp&lt;br /&gt;
&lt;br /&gt;
Fixes them. Some Googling suggests GCC stopped including std libs by default around 3.4, don't know if it's the same issue, I'm not a C/C++ dev so it's all a bit outside my knowledge, found solutions from Google. ;)&lt;br /&gt;
&lt;br /&gt;
After sorting those though I now get:&lt;br /&gt;
&lt;br /&gt;
mv -f .deps/qot_app_args.Tpo .deps/qot_app_args.Po&lt;br /&gt;
make[3]: *** No rule to make target `qot_closure.o', needed by `qot'. Stop.&lt;br /&gt;
make[3]: Leaving directory `/home/tolan/ttmp/qot/src'&lt;br /&gt;
make[2]: *** [all-recursive] Error 1&lt;br /&gt;
make[2]: Leaving directory `/home/tolan/ttmp/qot/src'&lt;br /&gt;
make[1]: *** [all-recursive] Error 1&lt;br /&gt;
make[1]: Leaving directory `/home/tolan/ttmp/qot'&lt;br /&gt;
make: *** [all] Error 2&lt;br /&gt;
&lt;br /&gt;
I'm afraid I know nothing about Make, other than that I never want to ever have to know anything about it ;)</description>
<guid>http://ritmark.com/mantis/view.php?id=16</guid>
<author>tolan &lt;tolan@example.com&gt;</author>
<comments>http://ritmark.com/mantis/view.php?id=16#bugnotes</comments>
</item>
<item>
<title>0000013: unambiguous columns are not recognized - &quot;unresolved identifier&quot;</title>
<link>http://ritmark.com/mantis/view.php?id=13</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
found another small glitch (on the other hand, it already proposed some indizes I wasn't able to find out...great :-) ).&lt;br /&gt;
&lt;br /&gt;
If you specify a column that is unambiguous, MySQL will let you get away with it, but qot won't. Using your example tables &quot;orders&quot; and &quot;clients&quot; and running the following query&lt;br /&gt;
 qot --input-file=schema.sql --input-query=&quot;SELECT * FROM clients c LEFT JOIN orders o ON o.client_id = c.id WHERE first_name = 'zaphod';&quot; --info&lt;br /&gt;
results in the error message&lt;br /&gt;
 ERROR 65000001 at 'first_name': unresolved identifier&lt;br /&gt;
though &quot;first_name&quot; could be resolved into a column of &quot;clients&quot;.&lt;br /&gt;
&lt;br /&gt;
Thanks again,&lt;br /&gt;
Philipp</description>
<guid>http://ritmark.com/mantis/view.php?id=13</guid>
<author>philipp_t &lt;philipp_t@example.com&gt;</author>
<comments>http://ritmark.com/mantis/view.php?id=13#bugnotes</comments>
</item>
<item>
<title>0000015: BOOLEAN columns are not supported</title>
<link>http://ritmark.com/mantis/view.php?id=15</link>
<description>If I extend the example table &quot;orders&quot; with a BOOLEAN column called &quot;shipped&quot; and execute the following query&lt;br /&gt;
 qot --input-file=schema.sql --input-query=&quot;SELECT count(*) FROM orders WHERE shipped=0;&quot; --info&lt;br /&gt;
I get a segmentation fault.&lt;br /&gt;
&lt;br /&gt;
Changing the column's type to INT resolves the problem.&lt;br /&gt;
&lt;br /&gt;
By the way: Might it be easier to read the database structure from the database directly instead of parsing the schema file? It seems to me that there's an awful lot that can go wrong when parsing this stuff...&lt;br /&gt;
&lt;br /&gt;
Philipp</description>
<guid>http://ritmark.com/mantis/view.php?id=15</guid>
<author>philipp_t &lt;philipp_t@example.com&gt;</author>
<comments>http://ritmark.com/mantis/view.php?id=15#bugnotes</comments>
</item>
<item>
<title>0000014: IFNULL produces segfault</title>
<link>http://ritmark.com/mantis/view.php?id=14</link>
<description>...I've found another one - sorry ;-)&lt;br /&gt;
&lt;br /&gt;
Running a statement containing MySQL's IFNULL function like&lt;br /&gt;
 qot --input-file=schema.sql --input-query=&quot;SELECT IFNULL(amount,0) FROM orders WHERE id = 1;&quot; --info&lt;br /&gt;
produces a segmentation fault.&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
Philipp</description>
<guid>http://ritmark.com/mantis/view.php?id=14</guid>
<author>philipp_t &lt;philipp_t@example.com&gt;</author>
<comments>http://ritmark.com/mantis/view.php?id=14#bugnotes</comments>
</item>
<item>
<title>0000012: WHERE clauses on SMALLINT columns produce SEGFAULT</title>
<link>http://ritmark.com/mantis/view.php?id=12</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
first: Thanks for your work - this tools looks very promising!&lt;br /&gt;
&lt;br /&gt;
Anyway, I just noticed that qot has a problem with queries against SMALLINT columns - modifying your example table to&lt;br /&gt;
&lt;br /&gt;
CREATE TABLE clients (&lt;br /&gt;
  id SMALLINT NOT NULL AUTO_INCREMENT PRIMARY KEY,&lt;br /&gt;
  first_name VARCHAR(255),&lt;br /&gt;
  last_name VARCHAR(255));&lt;br /&gt;
&lt;br /&gt;
and executing&lt;br /&gt;
  qot --input-file=schema.sql --input-query=&quot;SELECT * FROM clients WHERE id = 1;&quot; --info&lt;br /&gt;
&lt;br /&gt;
results in a &quot;Segmentation fault&quot;.&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
Philipp</description>
<guid>http://ritmark.com/mantis/view.php?id=12</guid>
<author>philipp_t &lt;philipp_t@example.com&gt;</author>
<comments>http://ritmark.com/mantis/view.php?id=12#bugnotes</comments>
</item>
<item>
<title>0000006: crash with bigint, datetime, enum field types</title>
<link>http://ritmark.com/mantis/view.php?id=6</link>
<description>Under windows, it's crashing when the DDL has bigint, datetime and enum field types</description>
<guid>http://ritmark.com/mantis/view.php?id=6</guid>
<author>anonymous &lt;anonymous@example.com&gt;</author>
<comments>http://ritmark.com/mantis/view.php?id=6#bugnotes</comments>
</item>
<item>
<title>0000011: Seg fault with LEFT OUTER JOIN queries</title>
<link>http://ritmark.com/mantis/view.php?id=11</link>
<description>Any query containing LEFT OUTER JOIN gives a seg fault (the queries generated by rails active record uses &quot;left outer join &quot;).&lt;br /&gt;
&lt;br /&gt;
If I remove the &quot;OUTER&quot; everything runs fine.</description>
<guid>http://ritmark.com/mantis/view.php?id=11</guid>
<author>anonymous &lt;anonymous@example.com&gt;</author>
<comments>http://ritmark.com/mantis/view.php?id=11#bugnotes</comments>
</item>
<item>
<title>0000007: segmentation fault</title>
<link>http://ritmark.com/mantis/view.php?id=7</link>
<description>just give a segmentation without any clue on what's happening by the way the version i'm using is 0.0.4.</description>
<guid>http://ritmark.com/mantis/view.php?id=7</guid>
<author>unclesamlive &lt;unclesamlive@example.com&gt;</author>
<comments>http://ritmark.com/mantis/view.php?id=7#bugnotes</comments>
</item>
<item>
<title>0000008: Windows Binaries &quot;The system cannot execute the specified program.&quot;</title>
<link>http://ritmark.com/mantis/view.php?id=8</link>
<description>When trying to start qot.exe or qot-tests.exe, &lt;br /&gt;
get error saying &quot;The system cannot execute the specified program.&quot;&lt;br /&gt;
&lt;br /&gt;
Additionally, if trying to RegSvr32.exe any of the included .dlls, &lt;br /&gt;
get alert: &quot;R6034&lt;br /&gt;
An application has made an attempt to load the C runtime library incorrectly.&lt;br /&gt;
Please contact the application's support team for more information.&quot;</description>
<guid>http://ritmark.com/mantis/view.php?id=8</guid>
<author>anonymous &lt;anonymous@example.com&gt;</author>
<comments>http://ritmark.com/mantis/view.php?id=8#bugnotes</comments>
</item>
<item>
<title>0000004: Wishlist - more detail on error output, ability to control error output</title>
<link>http://ritmark.com/mantis/view.php?id=4</link>
<description>This is against 0.0.3.&lt;br /&gt;
&lt;br /&gt;
I have a large schema file which is basically a mysqldump without data.  Once I add the CREATE DATABASE and USE statements, qot reads it in and uses it, but it prints out some errors:&lt;br /&gt;
error syntax error, unexpected IDENT_QUOTED, expecting ')' met&lt;br /&gt;
&lt;br /&gt;
1. I would like to request that the syntax error output also print the line number (if that info is available, if it's just in a struct and parsed char-by-char, then probably not and it's not worth keeping track of that info).&lt;br /&gt;
&lt;br /&gt;
2. I would like to request a -q option to quiet error output or wrap it with /* */.</description>
<guid>http://ritmark.com/mantis/view.php?id=4</guid>
<author>anonymous &lt;anonymous@example.com&gt;</author>
<comments>http://ritmark.com/mantis/view.php?id=4#bugnotes</comments>
</item>
<item>
<title>0000003: Segfault for queries that use table alias</title>
<link>http://ritmark.com/mantis/view.php?id=3</link>
<description>This is for 0.0.3 which is not yet able to be chosen in Product Version field.&lt;br /&gt;
&lt;br /&gt;
This query type works:&lt;br /&gt;
SELECT table.field FROM table WHERE table.field2 = 'x';&lt;br /&gt;
&lt;br /&gt;
These query types segfault:&lt;br /&gt;
SELECT t1.field FROM table AS t1 WHERE t1.field2 = 'x';&lt;br /&gt;
SELECT t1.field FROM table t1 WHERE t1.field2 = 'x';</description>
<guid>http://ritmark.com/mantis/view.php?id=3</guid>
<author>anonymous &lt;anonymous@example.com&gt;</author>
<comments>http://ritmark.com/mantis/view.php?id=3#bugnotes</comments>
</item>
<item>
<title>0000005: Various segfaults</title>
<link>http://ritmark.com/mantis/view.php?id=5</link>
<description>$ qot --input-file=test.sql --input-query='SELECT channel FROM test where id=5' --info &lt;br /&gt;
/* Output produced by qot 0.0.3 GPL */&lt;br /&gt;
/*&lt;br /&gt;
... all good&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
$ qot --input-file=test.sql --input-query='SELECT channel FROM test2 where id=5' --info &lt;br /&gt;
Segmentation fault&lt;br /&gt;
&lt;br /&gt;
$ qot --input-file=test.sql --input-query='SELECT channel, count(*) FROM test group by channel' --info&lt;br /&gt;
Segmentation fault&lt;br /&gt;
&lt;br /&gt;
I really love the idea and I would love to start using qot, but the program so far is missing absolutely basic checks and segfaults with no indication of what's wrong. Granted, the first query tries to use a table that doesn't exist, but the 2nd one uses a perfectly valid count(*), which seems to be the culprit here.</description>
<guid>http://ritmark.com/mantis/view.php?id=5</guid>
<author>archon810 &lt;archon810@example.com&gt;</author>
<comments>http://ritmark.com/mantis/view.php?id=5#bugnotes</comments>
</item>
<item>
<title>0000002: Segfault if query-file doesn't start with create database and use commands</title>
<link>http://ritmark.com/mantis/view.php?id=2</link>
<description>This is for 0.0.3, it's not yet able to be chosen in the Product Version field.&lt;br /&gt;
&lt;br /&gt;
It seems silly that a user wouldn't understand that it's a required part of the sql file, but to make qot more resilient it should gracefully handle the absence of those required parts.  qot should do one of two things:&lt;br /&gt;
- spit out an error if it encounters a CREATE TABLE before a CREATE DATABASE/SCHEMA and a USE statement&lt;br /&gt;
- or silently assume a 'CREATE DATABASE test;' and 'USE test;'.</description>
<guid>http://ritmark.com/mantis/view.php?id=2</guid>
<author>mrballcb &lt;mrballcb@example.com&gt;</author>
<comments>http://ritmark.com/mantis/view.php?id=2#bugnotes</comments>
</item>
<item>
<title>0000001: Compilation fails</title>
<link>http://ritmark.com/mantis/view.php?id=1</link>
<description>$ ./configure --prefix=/usr&lt;br /&gt;
$ make&lt;br /&gt;
...&lt;br /&gt;
gcc -DHAVE_CONFIG_H -I. -I../..     -g -O2 -MT strxmov.o -MD -MP -MF .deps/strxmov.Tpo -c -o strxmov.o strxmov.c&lt;br /&gt;
mv -f .deps/strxmov.Tpo .deps/strxmov.Po&lt;br /&gt;
gcc -DHAVE_CONFIG_H -I. -I../..     -g -O2 -MT xml.o -MD -MP -MF .deps/xml.Tpo -c -o xml.o xml.c&lt;br /&gt;
mv -f .deps/xml.Tpo .deps/xml.Po&lt;br /&gt;
rm -f libsqlparser-noinst.a&lt;br /&gt;
ar cru libsqlparser-noinst.a charset-def.o charset.o ctype-big5.o ctype-bin.o ctype-cp932.o ctype-czech.o ctype-euc_kr.o ctype-eucjpms.o ctype-extra.o ctype-gb2312.o ctype-gbk.o ctype-latin1.o ctype-mb.o ctype-simple.o ctype-sjis.o ctype-tis620.o ctype-uca.o ctype-ucs2.o ctype-ujis.o ctype-utf8.o ctype-win1250ch.o ctype.o dllmain.o int2str.o my_lib.o my_messnc.o my_static.o my_strtoll10.o my_vsnprintf.o myx_lex_helpers.o myx_sql_parser.tab.o myx_sql_tree_item.o myx_statement_parser.o myx_unicode_scanner.o str_alloc.o strmake.o strnmov.o strtod.o strxmov.o xml.o&lt;br /&gt;
ranlib libsqlparser-noinst.a&lt;br /&gt;
make[3]: Leaving directory `/home/bla/mysql/qot/src/sql-parser'&lt;br /&gt;
make[3]: Entering directory `/home/bla/mysql/qot/src'&lt;br /&gt;
g++ -DHAVE_CONFIG_H -I. -I..  -I../include    -g -O2 -MT qot.o -MD -MP -MF .deps/qot.Tpo -c -o qot.o qot.cpp&lt;br /&gt;
In file included from qot_select_query.h:26,&lt;br /&gt;
                 from qot.cpp:28:&lt;br /&gt;
qot_expression.h:514: error: base `qot::expr::Expr' with only non-default&lt;br /&gt;
   constructor in class without a constructor&lt;br /&gt;
qot_expression.h:838: error: base `qot::join::Table_ref' with only non-default&lt;br /&gt;
   constructor in class without a constructor&lt;br /&gt;
make[3]: *** [qot.o] Error 1&lt;br /&gt;
make[3]: Leaving directory `/home/bla/mysql/qot/src'&lt;br /&gt;
make[2]: *** [all-recursive] Error 1&lt;br /&gt;
make[2]: Leaving directory `/home/bla/mysql/qot/src'&lt;br /&gt;
make[1]: *** [all-recursive] Error 1&lt;br /&gt;
make[1]: Leaving directory `/home/bla/mysql/qot'&lt;br /&gt;
make: *** [all] Error 2</description>
<guid>http://ritmark.com/mantis/view.php?id=1</guid>
<author>anonymous &lt;anonymous@example.com&gt;</author>
<comments>http://ritmark.com/mantis/view.php?id=1#bugnotes</comments>
</item>
</channel>
</rss>
