<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-799</id>
	<title>Nabble - Tedia2Sql</title>
	<updated>2008-07-14T06:32:21Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Tedia2Sql-f799.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Tedia2Sql-f799.html" />
	<subtitle type="html">Tedia2Sql is a tool that allows you to create a database ERD in Dia (using the UML shape toolset), then to convert that ERD into a SQL DDL script for multiple databases.</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-18443978</id>
	<title>Patch for recognizing presence of gunzip</title>
	<published>2008-07-14T06:32:21Z</published>
	<updated>2008-07-14T06:32:21Z</updated>
	<author>
		<name>Watson, Paul</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2900.3354&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV&gt;&lt;SPAN class=359012813-14072008&gt;&lt;FONT face=Arial size=2&gt;The test for the 
presence of 'gunzip' does not seem correct on Windows.&amp;nbsp; Below is a patch to 
1.2.12.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=359012813-14072008&gt;&lt;FONT face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=359012813-14072008&gt;&lt;FONT face=Arial&gt;Perl now has 'gunzip' 
available through IO::Uncompress::Gunzip.&amp;nbsp; Would a patch that used it be 
accepted?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=359012813-14072008&gt;&lt;FONT face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=359012813-14072008&gt;&lt;FONT face=Arial&gt;===&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;FONT face=Arial&gt;$ diff ../tedia2sql-1.2.12/tedia2sql/tedia2sql 
./tedia2sql&lt;BR&gt;220a221&lt;BR&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $gunzipExists = ($? == 0 
? 1 : 0);&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Patch-for-recognizing-presence-of-gunzip-tp18443978p18443978.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18388548</id>
	<title>PK not recognized for association</title>
	<published>2008-07-10T10:59:50Z</published>
	<updated>2008-07-10T10:59:50Z</updated>
	<author>
		<name>Watson, Paul</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2900.3354&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV&gt;&lt;SPAN class=046535217-10072008&gt;&lt;FONT face=Arial size=2&gt;Attached is a .dia 
0.96.1 file.&amp;nbsp; There are only two tables (classes).&amp;nbsp; Each has a PK 
defined by setting &quot;Protected&quot;.&amp;nbsp; However, running tedia2sql generates the 
following message.&amp;nbsp; The 'sale_id' field is prefixed with '#' and an 
explicit index has been created for 'sale_id' in each table.&amp;nbsp; Being part of 
the PK should be enoough, shouldn't it?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=046535217-10072008&gt;&lt;FONT face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=046535217-10072008&gt;&lt;FONT face=Arial size=2&gt;$ 
&quot;/cygdrive/c/Documents and 
Settings/watsopau/../../Master/tedia2sql/tedia2sql/tedia2sql&quot; -d -k -t oracle -i 
test1.dia -o test1&lt;BR&gt;In association fk_sale_sale_sales_rep_rel sale_id doesn't 
refer to a primary key or unique index&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=046535217-10072008&gt;&lt;FONT face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=046535217-10072008&gt;&lt;FONT face=Arial&gt;Any suggestions?&amp;nbsp; 
Thanks.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt; &lt;br /&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18388548&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18388548&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;test1.dia&lt;/strong&gt; (37K) &lt;a href=&quot;http://www.nabble.com/attachment/18388548/0/test1.dia&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/PK-not-recognized-for-association-tp18388548p18388548.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-17140839</id>
	<title>Out of memory error?</title>
	<published>2008-05-08T20:34:33Z</published>
	<updated>2008-05-08T20:34:33Z</updated>
	<author>
		<name>Josiah Kiehl</name>
	</author>
	<content type="html">I get this error when trying to run the program:&lt;br&gt;&lt;br&gt;Ran out of memory for input buffer at /usr/lib/perl5/XML/Parser/Expat.pm line 469.&lt;br&gt;&lt;br&gt;&lt;br&gt;Any thoughts?&amp;nbsp; Attached is the file I want to convert to sql... it&amp;#39;s just a quick throw together to see how this thing works.&lt;br&gt;
Josiah Kiehl&lt;br&gt;&lt;a href=&quot;http://www.josiahkiehl.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.josiahkiehl.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.timebridge.com/mytime/josiahkiehl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.timebridge.com/mytime/josiahkiehl&lt;/a&gt; [Availability]&lt;br&gt;&lt;br&gt;&amp;quot;If I find in myself a desire which no experience in this world can satisfy, the most probable explanation is that I was made for another world.&amp;quot;&lt;br&gt;
&lt;br&gt;-- C. S. Lewis (Mere Christianity)
&lt;br /&gt; &lt;br /&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17140839&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=17140839&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;databaseSchema.dia&lt;/strong&gt; (3K) &lt;a href=&quot;http://www.nabble.com/attachment/17140839/0/databaseSchema.dia&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Out-of-memory-error--tp17140839p17140839.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-15256493</id>
	<title>Re: SQLite support</title>
	<published>2008-02-03T10:33:37Z</published>
	<updated>2008-02-03T10:33:37Z</updated>
	<author>
		<name>Martin Saturka</name>
	</author>
	<content type="html">Thank you for responding.
&lt;br&gt;I should look into it and try to add it. Just, it will take some time,
&lt;br&gt;even to start with it.
&lt;br&gt;&lt;br&gt;Martin
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 1/28/08, Mike Ginou &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=15256493&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Martin,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There are no plans for adding SQLite in any incarnation. Unfortunately,
&lt;br&gt;&amp;gt; tedia2sql hasn't seen any development love in a long while.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you'd like to add the support yourself, I will do my best to review
&lt;br&gt;&amp;gt; and integrate your patch, though.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Mike
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Martin Saturka wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hello,
&lt;br&gt;&amp;gt; &amp;gt; I'd like to ask if you plan to add a support for SQLite3
&lt;br&gt;&amp;gt; &amp;gt; (www.sqlite.org) into the tedia2sqlite.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Martin
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=15256493&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=15256493&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=15256493&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=15256493&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=15256493&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=15256493&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/SQLite-support-tp15123664p15256493.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-15141562</id>
	<title>Re: SQLite support</title>
	<published>2008-01-28T10:12:32Z</published>
	<updated>2008-01-28T10:12:32Z</updated>
	<author>
		<name>Mike Ginou</name>
	</author>
	<content type="html">Martin,
&lt;br&gt;&lt;br&gt;There are no plans for adding SQLite in any incarnation. Unfortunately, 
&lt;br&gt;tedia2sql hasn't seen any development love in a long while.
&lt;br&gt;&lt;br&gt;If you'd like to add the support yourself, I will do my best to review 
&lt;br&gt;and integrate your patch, though.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;Martin Saturka wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; I'd like to ask if you plan to add a support for SQLite3
&lt;br&gt;&amp;gt; (www.sqlite.org) into the tedia2sqlite.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Martin
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=15141562&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=15141562&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=15141562&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=15141562&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/SQLite-support-tp15123664p15141562.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-15123664</id>
	<title>SQLite support</title>
	<published>2008-01-27T12:30:33Z</published>
	<updated>2008-01-27T12:30:33Z</updated>
	<author>
		<name>Martin Saturka</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;I'd like to ask if you plan to add a support for SQLite3
&lt;br&gt;(www.sqlite.org) into the tedia2sqlite.
&lt;br&gt;&lt;br&gt;Martin
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=15123664&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=15123664&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/SQLite-support-tp15123664p15123664.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-13927058</id>
	<title>[Fwd: tedia2sql]</title>
	<published>2007-11-24T09:33:37Z</published>
	<updated>2007-11-24T09:33:37Z</updated>
	<author>
		<name>Mike Ginou</name>
	</author>
	<content type="html">I just wanted this to be recorded in the archives.
&lt;br&gt;&lt;br&gt;If anyone who reads this list actually has time to make these changes,
&lt;br&gt;please do. Test them, report back!
&lt;br&gt;&lt;br&gt;-Mike
&lt;br&gt;&lt;br&gt;-------- Original Message --------
&lt;br&gt;Subject: tedia2sql
&lt;br&gt;Date: Tue, 6 Nov 2007 03:22:38 +0800
&lt;br&gt;From: Beau Kissinger &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=13927058&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mrkissinger@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=13927058&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mginou@...&lt;/a&gt;, &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=13927058&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ttiimmeelleessss@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;I found a bug in tedia2sql, and I added a line of code.
&lt;br&gt;&lt;br&gt;sub sqlComment($$) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; my $commentString = shift;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($opt_t eq 'db2' || $opt_t eq 'informix' || $opt_t eq 'ingres' || $opt_t
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eq 'mssql' || $opt_t eq 'mysql' || $opt_t eq 'oracle' || $opt_t eq
&lt;br&gt;'postgres' || $opt_t eq 'sybase' || $opt_t eq 'innodb') {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $commentString=~s/\n/ /g; # Process multi-line comment in Dia
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return &amp;quot;-- $commentString&amp;quot;;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } elsif ($opt_t eq 'sas') {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return &amp;quot;/* $commentString */&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=13927058&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=13927058&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-Fwd%3A-tedia2sql--tp13927058p13927058.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-13844139</id>
	<title>Missing feature tedia2sql</title>
	<published>2007-11-14T06:36:32Z</published>
	<updated>2007-11-14T06:36:32Z</updated>
	<author>
		<name>Felix Nikolaus Ehm</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;(not sure if this is the correct list, please forward in case not.)
&lt;br&gt;&lt;br&gt;&lt;br&gt;First of all: thanks for this nice tool :-). 
&lt;br&gt;I am using it for quite a while and found it very useful.
&lt;br&gt;&lt;br&gt;I discovered recently a missing feature :
&lt;br&gt;The CREATE statements are not database scoped. 
&lt;br&gt;e.g. 
&lt;br&gt;&amp;nbsp; CREATE TABLE mytable (..
&lt;br&gt;better:
&lt;br&gt;&amp;nbsp; CREATE TABLE mydatabase.mytable (..
&lt;br&gt;&lt;br&gt;In my case I had a table called 'Endpoint'. When executing the generated
&lt;br&gt;CREATE statement, the server (MySQL 5.0.45 DB) refused it due to the
&lt;br&gt;'Endpoint' name (this works however in mysql 4.x). 
&lt;br&gt;It did work when I used the scoped statement.
&lt;br&gt;create table mydb.Endpoint (...
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks in advance, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Felix
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=13844139&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=13844139&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Missing-feature-tedia2sql-tp13844139p13844139.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-13656091</id>
	<title>Re: mysql foreign key contraint bug</title>
	<published>2007-11-08T11:50:50Z</published>
	<updated>2007-11-08T11:50:50Z</updated>
	<author>
		<name>Chris Dosé</name>
	</author>
	<content type="html">I'm sorry, I didn't correct against the latest revision, just the one
&lt;br&gt;in the ubuntu repository. &amp;nbsp;The bug is still there though, it's just on
&lt;br&gt;lines 2838 and 2840.
&lt;br&gt;&lt;br&gt;-Chris
&lt;br&gt;&lt;br&gt;On Nov 8, 2007 12:10 AM, Chris Dosé &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=13656091&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chris.dose@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; I noticed a bug in the creation of foreign key constraints when using
&lt;br&gt;&amp;gt; the mysql option. &amp;nbsp;When printing the sql for foreign keys using the
&lt;br&gt;&amp;gt; mysql or ingres types, it prints the first line of the alter table
&lt;br&gt;&amp;gt; block as a comment, and at the end appends &amp;quot;for $opt_t&amp;quot; instead of the
&lt;br&gt;&amp;gt; regular line delimiter. &amp;nbsp;I have this diff file here:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2818c2818
&lt;br&gt;&amp;gt; &amp;lt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $return &amp;nbsp;= &amp;quot;alter table $className add constraint $constraintName&amp;quot; . $nl;
&lt;br&gt;&amp;gt; ---
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $return &amp;nbsp;= &amp;sqlComment(&amp;quot;alter table $className add constraint $constraintName&amp;quot;) . $nl;
&lt;br&gt;&amp;gt; 2820c2820
&lt;br&gt;&amp;gt; &amp;lt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $return .= $in . &amp;quot;$refTable ($refColumns) $goCommand&amp;quot;;
&lt;br&gt;&amp;gt; ---
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $return .= $in . &amp;quot;$refTable ($refColumns) for $opt_t&amp;quot;;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That fixes the problem for me, but I don't know perl at all, so I may
&lt;br&gt;&amp;gt; have done something not so good. &amp;nbsp;Anyway, I like this project, it's
&lt;br&gt;&amp;gt; been useful to me, and I hope this helps fix this problem permenantly.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Chris
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=13656091&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=13656091&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mysql-foreign-key-contraint-bug-tp13654599p13656091.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-13654599</id>
	<title>mysql foreign key contraint bug</title>
	<published>2007-11-07T22:10:00Z</published>
	<updated>2007-11-07T22:10:00Z</updated>
	<author>
		<name>Chris Dosé</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I noticed a bug in the creation of foreign key constraints when using
&lt;br&gt;the mysql option. &amp;nbsp;When printing the sql for foreign keys using the
&lt;br&gt;mysql or ingres types, it prints the first line of the alter table
&lt;br&gt;block as a comment, and at the end appends &amp;quot;for $opt_t&amp;quot; instead of the
&lt;br&gt;regular line delimiter. &amp;nbsp;I have this diff file here:
&lt;br&gt;&lt;br&gt;2818c2818
&lt;br&gt;&amp;lt; 		$return &amp;nbsp;= &amp;quot;alter table $className add constraint $constraintName&amp;quot; . $nl;
&lt;br&gt;---
&lt;br&gt;&amp;gt; 		$return &amp;nbsp;= &amp;sqlComment(&amp;quot;alter table $className add constraint $constraintName&amp;quot;) . $nl;
&lt;br&gt;2820c2820
&lt;br&gt;&amp;lt; 		$return .= $in . &amp;quot;$refTable ($refColumns) $goCommand&amp;quot;;
&lt;br&gt;---
&lt;br&gt;&amp;gt; 		$return .= $in . &amp;quot;$refTable ($refColumns) for $opt_t&amp;quot;;
&lt;br&gt;&lt;br&gt;That fixes the problem for me, but I don't know perl at all, so I may
&lt;br&gt;have done something not so good. &amp;nbsp;Anyway, I like this project, it's
&lt;br&gt;been useful to me, and I hope this helps fix this problem permenantly.
&lt;br&gt;&lt;br&gt;-Chris
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=13654599&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=13654599&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mysql-foreign-key-contraint-bug-tp13654599p13654599.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-11051809</id>
	<title>Autoreply: [TEDIA2SQL-USERS] Patch: Don't lc constants in enums</title>
	<published>2007-06-10T14:05:43Z</published>
	<updated>2007-06-10T14:05:43Z</updated>
	<author>
		<name>k.wacker</name>
	</author>
	<content type="html">Vielen Dank f�r Ihre Nachricht. Ich bin vom 8. Juni 2007 bis zum 19. Juni 2007 im Urlaub und habe keinen Zugang zu meinen E-Mails. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Wenden Sie sich daher in dringenden F�llen bitte an
&lt;br&gt;Thomas Woinke:
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=11051809&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;t.woinke@...&lt;/a&gt;
&lt;br&gt;Telefon 07121 348 121
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;konrad wacker
&lt;br&gt;&lt;br&gt;21TORR AGENCY gmbh
&lt;br&gt;engineering unit
&lt;br&gt;&lt;br&gt;heinestrasse 72
&lt;br&gt;d-72762 reutlingen
&lt;br&gt;phone +49-7121-348-226
&lt;br&gt;fax +49-7121-348-159
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=11051809&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;k.wacker@...&lt;/a&gt;
&lt;br&gt;21TORR - die neue medien leidenschaft
&lt;br&gt;www.21torr.com
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Aktuelle Projekte von 21TORR live im Internet:
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Die G-Klasse. Verwechslung ausgeschlossen.
&lt;br&gt;&lt;a href=&quot;http://www.mercedes-benz.com/g-klasse&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mercedes-benz.com/g-klasse&lt;/a&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;Klaus ist raus! Wer kann ihn ersetzen?
&lt;br&gt;&lt;a href=&quot;http://www.klaus-ersetzen.de/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.klaus-ersetzen.de/&lt;/a&gt;&lt;br&gt;--
&lt;br&gt;Gesch�ftsf�hrer 21TORR AGENCY gmbh:
&lt;br&gt;Gaby Munz, Marcus Reiser, Alexander Hafemann
&lt;br&gt;&lt;br&gt;Amtsgericht Stuttgart HRB 353716
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=11051809&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=11051809&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Autoreply%3A--TEDIA2SQL-USERS--Patch%3A-Don%27t-lc-constants-in-enums-tp11051809p11051809.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-11051805</id>
	<title>Patch: Don't lc constants in enums</title>
	<published>2007-06-10T14:05:38Z</published>
	<updated>2007-06-10T14:05:38Z</updated>
	<author>
		<name>Bugzilla from antialize@gmail.com</name>
	</author>
	<content type="html">Hi. It seems wrong to lowercase string constants in enums,
&lt;br&gt;this patch will fix it.
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=11051805&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=11051805&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;tedia2sql.patch&lt;/strong&gt; (748 bytes) &lt;a href=&quot;http://www.nabble.com/attachment/11051805/0/tedia2sql.patch&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Patch%3A-Don%27t-lc-constants-in-enums-tp11051805p11051805.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-10706742</id>
	<title>Re: tedia2sql - backwards?</title>
	<published>2007-05-20T09:20:40Z</published>
	<updated>2007-05-20T09:20:40Z</updated>
	<author>
		<name>Mike Ginou</name>
	</author>
	<content type="html">There is a tool called sql2dia and another called AutoDia.
&lt;br&gt;&lt;br&gt;Neither generates a tedia2sql compliant diagram. AutoDia appears to
&lt;br&gt;create UML diagrams, so those could probably be modified fairly easily.
&lt;br&gt;&lt;br&gt;If you do plan on using one of the above in conjunction with tedia2sql,
&lt;br&gt;please report back about your experience.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;Dominic Blythe wrote:
&lt;br&gt;&amp;gt; Do you know of any DDL to DIA tools?
&lt;br&gt;&amp;gt; Do you have any plans to make one?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10706742&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10706742&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-tedia2sql---backwards--tp10706742p10706742.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-10222746</id>
	<title>Re: Re: int or integer ?</title>
	<published>2007-04-27T08:09:27Z</published>
	<updated>2007-04-27T08:09:27Z</updated>
	<author>
		<name>Massimiliano Franco</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I was using &amp;quot;integer&amp;quot; in my dia schema and the script was working fine
&lt;br&gt;until I tried the last CVS version.
&lt;br&gt;&lt;br&gt;The &amp;quot;problem&amp;quot; with using &amp;quot;integer&amp;quot; is that type compatibility checks
&lt;br&gt;fails comparing &amp;quot;serial &amp;lt;=&amp;gt; integer&amp;quot; on a relation, &amp;nbsp;but works on
&lt;br&gt;&amp;quot;serial &amp;lt;=&amp;gt; int&amp;quot; (check revision 1.65 on CVS).
&lt;br&gt;&lt;br&gt;The script *should* accept both of them as both are documented in
&lt;br&gt;postgresql... But let say it would be a new feature for a release on a
&lt;br&gt;galaxy far far away ;) The modif on the doc is well enough. I changed my
&lt;br&gt;schema.
&lt;br&gt;&lt;br&gt;Thanks to both of you, timeless, Mike.
&lt;br&gt;&lt;br&gt;Have a nice week-end.
&lt;br&gt;&lt;br&gt;Massimiliano
&lt;br&gt;&lt;br&gt;Le jeudi 26 avril 2007 à 14:49 -0700, Time Less a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 4/26/07, Mike Ginou &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10222746&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; About this integer/int thing, if 'int' is &amp;quot;the way&amp;quot;, then it
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; should at
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; least be mentioned somehow in the documentation page :
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; &lt;a href=&quot;http://tedia2sql.tigris.org/usingtedia2sql.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tedia2sql.tigris.org/usingtedia2sql.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt; There's some examples talking about using 'integer'.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Yes, you're absolutely right. I'll put it on my list of things
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; to do.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I'm not very fast at getting to them though :)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I don't think I'm fully understanding the issues with 'int' vs
&lt;br&gt;&amp;gt; 'integer' here, but since we seem happy to refer to it as 'int' on the
&lt;br&gt;&amp;gt; docs page as resolving the issue, I edited the docs and checked them
&lt;br&gt;&amp;gt; in. The page now refers to 'int' rather than 'integer.'
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; timeless(ness)
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10222746&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10222746&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-int-or-integer---tp10161927p10222746.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-10212608</id>
	<title>Re: Re: int or integer ?</title>
	<published>2007-04-26T15:49:01Z</published>
	<updated>2007-04-26T15:49:01Z</updated>
	<author>
		<name>Time Less</name>
	</author>
	<content type="html">On 4/26/07, &lt;b class=&quot;gmail_sendername&quot;&gt;Mike Ginou&lt;/b&gt; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10212608&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt; wrote:&lt;div&gt;&lt;span class=&quot;gmail_quote&quot;&gt;&lt;/span&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&amp;gt; About this integer/int thing, if &amp;#39;int&amp;#39; is &amp;quot;the way&amp;quot;, then it should at&lt;br&gt;&amp;gt; least be mentioned somehow in the documentation page :&lt;br&gt;&amp;gt; &lt;a href=&quot;http://tedia2sql.tigris.org/usingtedia2sql.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;
http://tedia2sql.tigris.org/usingtedia2sql.html&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; There&amp;#39;s some examples talking about using &amp;#39;integer&amp;#39;.&lt;br&gt;&lt;br&gt;Yes, you&amp;#39;re absolutely right. I&amp;#39;ll put it on my list of things to do.&lt;br&gt;
I&amp;#39;m not very fast at getting to them though :)&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
I don&amp;#39;t think I&amp;#39;m fully understanding the issues with &amp;#39;int&amp;#39; vs
&amp;#39;integer&amp;#39; here, but since we seem happy to refer to it as &amp;#39;int&amp;#39; on the
docs page as resolving the issue, I edited the docs and checked them
in. The page now refers to &amp;#39;int&amp;#39; rather than &amp;#39;integer.&amp;#39;&lt;br&gt;
&lt;br&gt;-- &lt;br&gt;timeless(ness)&lt;br&gt;
&lt;br&gt;

</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-int-or-integer---tp10161927p10212608.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-10201089</id>
	<title>Re: Re: int or integer ?</title>
	<published>2007-04-26T08:01:50Z</published>
	<updated>2007-04-26T08:01:50Z</updated>
	<author>
		<name>Mike Ginou</name>
	</author>
	<content type="html">&amp;gt; About this integer/int thing, if 'int' is &amp;quot;the way&amp;quot;, then it should at
&lt;br&gt;&amp;gt; least be mentioned somehow in the documentation page :
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://tedia2sql.tigris.org/usingtedia2sql.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tedia2sql.tigris.org/usingtedia2sql.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; There's some examples talking about using 'integer'.
&lt;br&gt;&lt;br&gt;Yes, you're absolutely right. I'll put it on my list of things to do.
&lt;br&gt;I'm not very fast at getting to them though :)
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10201089&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10201089&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-int-or-integer---tp10161927p10201089.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-10195782</id>
	<title>Re: Re: int or integer ?</title>
	<published>2007-04-26T01:49:20Z</published>
	<updated>2007-04-26T01:49:20Z</updated>
	<author>
		<name>Massimiliano Franco-2</name>
	</author>
	<content type="html">Hi Mike,
&lt;br&gt;&lt;br&gt;Thanks for you answer. I was sure you would propose me to code a
&lt;br&gt;function :) That was the solution I had in mind to resolve this matter.
&lt;br&gt;I may perhaps have the time in the next months. I let you know.
&lt;br&gt;&lt;br&gt;About this integer/int thing, if 'int' is &amp;quot;the way&amp;quot;, then it should at
&lt;br&gt;least be mentioned somehow in the documentation page :
&lt;br&gt;&lt;a href=&quot;http://tedia2sql.tigris.org/usingtedia2sql.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tedia2sql.tigris.org/usingtedia2sql.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;There's some examples talking about using 'integer'.
&lt;br&gt;&lt;br&gt;Just my 2cts.
&lt;br&gt;&lt;br&gt;Massimiliano
&lt;br&gt;&lt;br&gt;Le mardi 24 avril 2007 à 10:17 -0400, Mike Ginou a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Massimiliano,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I see the problem, however, since int and integer are synonyms according
&lt;br&gt;&amp;gt; to the PostgreSQL manual. Therefore I cannot make the simple change that
&lt;br&gt;&amp;gt; you describe. To do so would mean that others who use 'int' rather than
&lt;br&gt;&amp;gt; 'integer' in their classes will encounter the same problem.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I investigated making changes to the function that determines type
&lt;br&gt;&amp;gt; mismatches for associations, however the change would be complex and is
&lt;br&gt;&amp;gt; generally beyond the type of maintenance work that is done for this project.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If you would like to work on it and submit a change, I would be happy to
&lt;br&gt;&amp;gt; review it. The relevant subroutine is generateOneToAnyAssociation (there
&lt;br&gt;&amp;gt; may be some other subroutines that require modification as well). What
&lt;br&gt;&amp;gt; would be required is to parse out the attributes of the association and
&lt;br&gt;&amp;gt; rather than simply comparing them directly, a new comparison function
&lt;br&gt;&amp;gt; would be needed. The comparison function would allow for any special
&lt;br&gt;&amp;gt; case comparisons to be made. In the case of most DBs (and in your
&lt;br&gt;&amp;gt; particular example, postgres) int is a synonym for integer thus an
&lt;br&gt;&amp;gt; association with int on one side and integer on the other would be
&lt;br&gt;&amp;gt; considered a match.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -Mike
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Massimiliano Franco wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hello,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I created a quick Gentoo ebuild to test the latest CVS version of
&lt;br&gt;&amp;gt; &amp;gt; tedia2sql.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I'm using the 'postgres' DB and I encountered a problem with relations
&lt;br&gt;&amp;gt; &amp;gt; between tables when in the first table I have an entry with a serial
&lt;br&gt;&amp;gt; &amp;gt; type and in the second I have an integer type.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I noticed that the 1.66 revision introduces a treatment on the serial
&lt;br&gt;&amp;gt; &amp;gt; type:
&lt;br&gt;&amp;gt; &amp;gt; ***********************
&lt;br&gt;&amp;gt; &amp;gt; + 	# Returns base type of some DMBS specyfic types (eg in PostgreSQL
&lt;br&gt;&amp;gt; &amp;gt; serial is int)
&lt;br&gt;&amp;gt; &amp;gt; + 	sub getBaseType($) {
&lt;br&gt;&amp;gt; &amp;gt; + 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; my $typeName &amp;nbsp; &amp;nbsp;= shift;
&lt;br&gt;&amp;gt; &amp;gt; + 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($opt_t eq 'postgres') {
&lt;br&gt;&amp;gt; &amp;gt; + 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($typeName eq 'serial' || $typeName eq 'SERIAL') {
&lt;br&gt;&amp;gt; &amp;gt; + 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 'int';
&lt;br&gt;&amp;gt; &amp;gt; + 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;gt; + 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {
&lt;br&gt;&amp;gt; &amp;gt; + 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return $typeName;
&lt;br&gt;&amp;gt; &amp;gt; + 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;gt; + 	}
&lt;br&gt;&amp;gt; &amp;gt; ***********************
&lt;br&gt;&amp;gt; &amp;gt; It's the &amp;quot;return 'int'&amp;quot; that annoys me. Since this revision the script
&lt;br&gt;&amp;gt; &amp;gt; exits with this kind of error:
&lt;br&gt;&amp;gt; &amp;gt; Attribute types (id_client is serial, id_client is integer) don't match
&lt;br&gt;&amp;gt; &amp;gt; in clientsCli_con (clients,cli_con)
&lt;br&gt;&amp;gt; &amp;gt; Number or types of (id_client) don't match (id_client) in clientsCli_con
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I suggest replacing &amp;quot;return 'int'&amp;quot; to &amp;quot;return 'integer'&amp;quot; as the mapping
&lt;br&gt;&amp;gt; &amp;gt; is already handled. I don't know if it breaks other things.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Thanks for your time.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Have a nice day !
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Massimo
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10195782&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10195782&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10195782&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10195782&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-int-or-integer---tp10161927p10195782.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-10193035</id>
	<title>Re: utf8 support</title>
	<published>2007-04-25T20:06:15Z</published>
	<updated>2007-04-25T20:06:15Z</updated>
	<author>
		<name>Alvaro-16</name>
	</author>
	<content type="html">Mike Ginou escribió:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; Today working on some files I see these aren't saved at utf8 and ask why?
&lt;br&gt;&amp;gt;&amp;gt; looking in my system I see utf8 don't was my default locale!
&lt;br&gt;&amp;gt;&amp;gt; when upgrade debian, the locale utf8 dissapear like default,
&lt;br&gt;&amp;gt;&amp;gt; so now revert the code of tedia2sql I haved to change and work perfectly! 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So to be clear the standard debian standard version of tedia2sql works fine?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Mike
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; PS - I'm glad it
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10193035&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10193035&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;work very pretty fine!
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10193035&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10193035&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/utf8-support-tp10145326p10193035.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-10192520</id>
	<title>Re: utf8 support</title>
	<published>2007-04-25T19:08:00Z</published>
	<updated>2007-04-25T19:08:00Z</updated>
	<author>
		<name>Mike Ginou</name>
	</author>
	<content type="html">&amp;gt; Today working on some files I see these aren't saved at utf8 and ask why?
&lt;br&gt;&amp;gt; looking in my system I see utf8 don't was my default locale!
&lt;br&gt;&amp;gt; when upgrade debian, the locale utf8 dissapear like default,
&lt;br&gt;&amp;gt; so now revert the code of tedia2sql I haved to change and work perfectly! 
&lt;br&gt;&lt;br&gt;&lt;br&gt;So to be clear the standard debian standard version of tedia2sql works fine?
&lt;br&gt;&lt;br&gt;-Mike
&lt;br&gt;&lt;br&gt;PS - I'm glad it
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10192520&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10192520&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/utf8-support-tp10145326p10192520.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-10161927</id>
	<title>Re: int or integer ?</title>
	<published>2007-04-24T08:17:56Z</published>
	<updated>2007-04-24T08:17:56Z</updated>
	<author>
		<name>Mike Ginou</name>
	</author>
	<content type="html">Massimiliano,
&lt;br&gt;&lt;br&gt;I see the problem, however, since int and integer are synonyms according
&lt;br&gt;to the PostgreSQL manual. Therefore I cannot make the simple change that
&lt;br&gt;you describe. To do so would mean that others who use 'int' rather than
&lt;br&gt;'integer' in their classes will encounter the same problem.
&lt;br&gt;&lt;br&gt;I investigated making changes to the function that determines type
&lt;br&gt;mismatches for associations, however the change would be complex and is
&lt;br&gt;generally beyond the type of maintenance work that is done for this project.
&lt;br&gt;&lt;br&gt;If you would like to work on it and submit a change, I would be happy to
&lt;br&gt;review it. The relevant subroutine is generateOneToAnyAssociation (there
&lt;br&gt;may be some other subroutines that require modification as well). What
&lt;br&gt;would be required is to parse out the attributes of the association and
&lt;br&gt;rather than simply comparing them directly, a new comparison function
&lt;br&gt;would be needed. The comparison function would allow for any special
&lt;br&gt;case comparisons to be made. In the case of most DBs (and in your
&lt;br&gt;particular example, postgres) int is a synonym for integer thus an
&lt;br&gt;association with int on one side and integer on the other would be
&lt;br&gt;considered a match.
&lt;br&gt;&lt;br&gt;-Mike
&lt;br&gt;&lt;br&gt;&lt;br&gt;Massimiliano Franco wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I created a quick Gentoo ebuild to test the latest CVS version of
&lt;br&gt;&amp;gt; tedia2sql.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm using the 'postgres' DB and I encountered a problem with relations
&lt;br&gt;&amp;gt; between tables when in the first table I have an entry with a serial
&lt;br&gt;&amp;gt; type and in the second I have an integer type.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I noticed that the 1.66 revision introduces a treatment on the serial
&lt;br&gt;&amp;gt; type:
&lt;br&gt;&amp;gt; ***********************
&lt;br&gt;&amp;gt; + 	# Returns base type of some DMBS specyfic types (eg in PostgreSQL
&lt;br&gt;&amp;gt; serial is int)
&lt;br&gt;&amp;gt; + 	sub getBaseType($) {
&lt;br&gt;&amp;gt; + 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; my $typeName &amp;nbsp; &amp;nbsp;= shift;
&lt;br&gt;&amp;gt; + 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($opt_t eq 'postgres') {
&lt;br&gt;&amp;gt; + 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($typeName eq 'serial' || $typeName eq 'SERIAL') {
&lt;br&gt;&amp;gt; + 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 'int';
&lt;br&gt;&amp;gt; + 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; + 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {
&lt;br&gt;&amp;gt; + 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return $typeName;
&lt;br&gt;&amp;gt; + 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; + 	}
&lt;br&gt;&amp;gt; ***********************
&lt;br&gt;&amp;gt; It's the &amp;quot;return 'int'&amp;quot; that annoys me. Since this revision the script
&lt;br&gt;&amp;gt; exits with this kind of error:
&lt;br&gt;&amp;gt; Attribute types (id_client is serial, id_client is integer) don't match
&lt;br&gt;&amp;gt; in clientsCli_con (clients,cli_con)
&lt;br&gt;&amp;gt; Number or types of (id_client) don't match (id_client) in clientsCli_con
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I suggest replacing &amp;quot;return 'int'&amp;quot; to &amp;quot;return 'integer'&amp;quot; as the mapping
&lt;br&gt;&amp;gt; is already handled. I don't know if it breaks other things.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks for your time.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Have a nice day !
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Massimo
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10161927&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10161927&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-int-or-integer---tp10161927p10161927.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-10161515</id>
	<title>Re: utf8 support</title>
	<published>2007-04-24T07:57:06Z</published>
	<updated>2007-04-24T07:57:06Z</updated>
	<author>
		<name>Mike Ginou</name>
	</author>
	<content type="html">Alvaro,
&lt;br&gt;&lt;br&gt;Some preliminary investigation of utf8 support was made some time ago.
&lt;br&gt;At the time it was concluded that simply adding
&lt;br&gt;&lt;br&gt;use open ':locale';
&lt;br&gt;&lt;br&gt;was sufficient to fix encoding mishaps (provided your locale is set
&lt;br&gt;properly in your environment).
&lt;br&gt;&lt;br&gt;I have attached a very small patch that makes that fix, can you test it out?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Alvaro wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; I am new user of tedia2sql, because I am spanish speaking have some
&lt;br&gt;&amp;gt; problems with inserts created by tedia2sql because don't have utf8
&lt;br&gt;&amp;gt; encode support, so I did a patch in perl code.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I don't know anything about perl, but I tryed and it works!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I explain it:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; first you have tell perl about encode type to open and save files and
&lt;br&gt;&amp;gt; use of encode/decode functions:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; use open IO &amp;nbsp;=&amp;gt; ':utf8';
&lt;br&gt;&amp;gt; use Encode
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I think that value (utf8) must be passed trough command line,
&lt;br&gt;&amp;gt; also there is a way to use 'locale' instead of 'utf8'
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; then when teadia2sql do:
&lt;br&gt;&amp;gt; print $iout &amp;createInsertStatements ($compName, $compText);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; you have to do
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; print $iout &amp;createInsertStatements ($compName, decode('utf8,'$compText));
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; again it must be a value passed by command-line
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Well I say again I don't know perl so checkit out please, if you like me
&lt;br&gt;&amp;gt; submit
&lt;br&gt;&amp;gt; a patch with command-line support and well code please tell me how I
&lt;br&gt;&amp;gt; submit that.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Greate work! very useful to me!
&lt;br&gt;&amp;gt; thanks
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Alvaro
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10161515&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10161515&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;Index: tedia2sql
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/tedia2sql/tedia2sql,v
&lt;br&gt;retrieving revision 1.68
&lt;br&gt;diff -u -r1.68 tedia2sql
&lt;br&gt;--- tedia2sql	19 Dec 2004 03:44:42 -0000	1.68
&lt;br&gt;+++ tedia2sql	24 Apr 2007 13:52:28 -0000
&lt;br&gt;@@ -52,6 +52,8 @@
&lt;br&gt;&amp;nbsp;# &amp;nbsp;actual license is at &lt;a href=&quot;http://www.gnu.org/licenses/gpl.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gnu.org/licenses/gpl.txt&lt;/a&gt;&amp;nbsp;as well.
&lt;br&gt;&amp;nbsp;# ------------------------ LICENSE SUMMARY ------------------------------------
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+use open ':locale';
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;sub parseRCFile($);
&lt;br&gt;&amp;nbsp;sub checkExtraClauseUsage();
&lt;br&gt;&amp;nbsp;sub checkMacroUsage();
&lt;br&gt;&lt;br&gt;&lt;br /&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10161515&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10161515&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/utf8-support-tp10145326p10161515.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-10145326</id>
	<title>utf8 support</title>
	<published>2007-04-23T11:36:27Z</published>
	<updated>2007-04-23T11:36:27Z</updated>
	<author>
		<name>Alvaro-16</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I am new user of tedia2sql, because I am spanish speaking have some 
&lt;br&gt;problems with inserts created by tedia2sql because don't have utf8 
&lt;br&gt;encode support, so I did a patch in perl code.
&lt;br&gt;&lt;br&gt;I don't know anything about perl, but I tryed and it works!
&lt;br&gt;&lt;br&gt;I explain it:
&lt;br&gt;&lt;br&gt;first you have tell perl about encode type to open and save files and
&lt;br&gt;use of encode/decode functions:
&lt;br&gt;&lt;br&gt;use open IO &amp;nbsp;=&amp;gt; ':utf8';
&lt;br&gt;use Encode
&lt;br&gt;&lt;br&gt;I think that value (utf8) must be passed trough command line,
&lt;br&gt;also there is a way to use 'locale' instead of 'utf8'
&lt;br&gt;&lt;br&gt;then when teadia2sql do:
&lt;br&gt;print $iout &amp;createInsertStatements ($compName, $compText);
&lt;br&gt;&lt;br&gt;you have to do
&lt;br&gt;&lt;br&gt;print $iout &amp;createInsertStatements ($compName, decode('utf8,'$compText));
&lt;br&gt;&lt;br&gt;again it must be a value passed by command-line
&lt;br&gt;&lt;br&gt;Well I say again I don't know perl so checkit out please, if you like me 
&lt;br&gt;submit
&lt;br&gt;a patch with command-line support and well code please tell me how I 
&lt;br&gt;submit that.
&lt;br&gt;&lt;br&gt;Greate work! very useful to me!
&lt;br&gt;thanks
&lt;br&gt;&lt;br&gt;Alvaro
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10145326&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10145326&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/utf8-support-tp10145326p10145326.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-10052487</id>
	<title>Re: postgres inheritance</title>
	<published>2007-04-17T23:27:35Z</published>
	<updated>2007-04-17T23:27:35Z</updated>
	<author>
		<name>albert-45</name>
	</author>
	<content type="html">Is this diff format suitable to you?
&lt;br&gt;&lt;br&gt;Index: tedia2sql
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/tedia2sql/tedia2sql,v
&lt;br&gt;retrieving revision 1.68
&lt;br&gt;diff -r1.68 tedia2sql
&lt;br&gt;1210a1211,1214
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($opt_t eq 'postgres') {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;addInheritance ($createFileHandle, $objectOperations)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;1242a1247,1270
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; # Inheritance is temporarily resolved using a class operation called &amp;quot;inherits&amp;quot;, whose
&lt;br&gt;&amp;gt; # type is interpreted as the name of the table the class is inheriting from.
&lt;br&gt;&amp;gt; # The correct way to go should be the use of generalization assocation links.
&lt;br&gt;&amp;gt; #
&lt;br&gt;&amp;gt; # TODO: interpret relation &amp;quot;generalization, class inheritance&amp;quot; from UML diagram instead.
&lt;br&gt;&amp;gt; # &amp;nbsp; &amp;nbsp; &amp;nbsp; Implement table declaration ordering (they must be declared after their ancestor tables),
&lt;br&gt;&amp;gt; # &amp;nbsp; &amp;nbsp; &amp;nbsp; probably safest way is create inheritance tree during diagram scanning.
&lt;br&gt;&amp;gt; # &amp;nbsp; &amp;nbsp; &amp;nbsp; Handle multiple inheritance: inherits (a,b,c)
&lt;br&gt;&amp;gt; #
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; sub addInheritance($$$) {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; my $createFileHandle = shift;
&lt;br&gt;&amp;gt; &amp;nbsp; my $theOperations = shift;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; foreach my $oneOp (@$theOperations) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; my ($opName, $opType, $opParams) = @$oneOp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; if ($opName eq 'inherits') {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; print &amp;quot;* table inherits from: $opType\n&amp;quot; if ($verbose);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; print $createFileHandle &amp;quot;inherits ($opType) &amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; }
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;2007/4/18, Mike Ginou &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052487&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Yes! Please do forward the patch. I would very much like to take a look
&lt;br&gt;&amp;gt; at it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Mike
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; albert wrote:
&lt;br&gt;&amp;gt; &amp;gt; Mike,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thank you for your support. I have momentarily hacked tedia2sql perl
&lt;br&gt;&amp;gt; &amp;gt; script to add inheritance to postgres tables when a class is found to
&lt;br&gt;&amp;gt; &amp;gt; have an operation named &amp;quot;inherits&amp;quot;. Its type is used to refer to the
&lt;br&gt;&amp;gt; &amp;gt; table name it inherits from. Ugly, but it works for the timing
&lt;br&gt;&amp;gt; &amp;gt; deadline I am currently on.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Problems:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 1. The correct way to interpret inheritance is, as I understand it,
&lt;br&gt;&amp;gt; &amp;gt; make use of the &amp;quot;Generalization&amp;quot; association type. Have digged into
&lt;br&gt;&amp;gt; &amp;gt; the source and guess the correct approach is to add the inheritance
&lt;br&gt;&amp;gt; &amp;gt; info into the class definition when traversing through the association
&lt;br&gt;&amp;gt; &amp;gt; nodes (a function called generateAssocSqlFromNodeList if I'm not
&lt;br&gt;&amp;gt; &amp;gt; mistaken).
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 2. On complex diagrams, the ordering of table definitions will
&lt;br&gt;&amp;gt; &amp;gt; eventually upset postgres at import time (an inheriting table has to
&lt;br&gt;&amp;gt; &amp;gt; be defined after the table it inherits from). Not sure if Dia's object
&lt;br&gt;&amp;gt; &amp;gt; Z-order might help, but safest solution I guess is to build a
&lt;br&gt;&amp;gt; &amp;gt; parent-child relationship tree during diagram scanning.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Unfortunately am not very skillfull on Perl, but I am more than happy
&lt;br&gt;&amp;gt; &amp;gt; to help implement and document it if there's interest. Let me know if
&lt;br&gt;&amp;gt; &amp;gt; you'd like me to forward the temporary patch.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; best regards
&lt;br&gt;&amp;gt; &amp;gt; albert
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 2007/4/18, Mike Ginou &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052487&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Albert,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Unfortunately, I don't have any experience with inheritence in an RDBMS.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Therefore, I don't think I'm in a good position to add this feature.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; If you're willing to dig into it yourself, I would be more than happy to
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; offer suggestions and to answer any questions you might have.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Mike
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; albert wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Hi all,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; I've been searching through multiple sites including this official
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; mailing list, on how to implement postgres table inheritance using
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; tedia2sql. There's some mentions about this feature being implemented,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; but sadly enough, grepping through a fresh cvs checked-out revision
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; has returned me no results.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; I'm looking for a way to represent this postgres definition:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; CREATE TABLE a (...) with oids;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; CREATE TABLE b (...) inherits a;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; on a dia diagram which tedia2sql can understand properly.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; best regards
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052487&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052487&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052487&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052487&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052487&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052487&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052487&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052487&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052487&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052487&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/postgres-inheritance-tp10029235p10052487.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-10052439</id>
	<title>Re: postgres inheritance</title>
	<published>2007-04-17T23:21:15Z</published>
	<updated>2007-04-17T23:21:15Z</updated>
	<author>
		<name>Mike Ginou</name>
	</author>
	<content type="html">Yes! Please do forward the patch. I would very much like to take a look
&lt;br&gt;at it.
&lt;br&gt;&lt;br&gt;-Mike
&lt;br&gt;&lt;br&gt;albert wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Mike,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you for your support. I have momentarily hacked tedia2sql perl
&lt;br&gt;&amp;gt; script to add inheritance to postgres tables when a class is found to
&lt;br&gt;&amp;gt; have an operation named &amp;quot;inherits&amp;quot;. Its type is used to refer to the
&lt;br&gt;&amp;gt; table name it inherits from. Ugly, but it works for the timing
&lt;br&gt;&amp;gt; deadline I am currently on.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Problems:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 1. The correct way to interpret inheritance is, as I understand it,
&lt;br&gt;&amp;gt; make use of the &amp;quot;Generalization&amp;quot; association type. Have digged into
&lt;br&gt;&amp;gt; the source and guess the correct approach is to add the inheritance
&lt;br&gt;&amp;gt; info into the class definition when traversing through the association
&lt;br&gt;&amp;gt; nodes (a function called generateAssocSqlFromNodeList if I'm not
&lt;br&gt;&amp;gt; mistaken).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2. On complex diagrams, the ordering of table definitions will
&lt;br&gt;&amp;gt; eventually upset postgres at import time (an inheriting table has to
&lt;br&gt;&amp;gt; be defined after the table it inherits from). Not sure if Dia's object
&lt;br&gt;&amp;gt; Z-order might help, but safest solution I guess is to build a
&lt;br&gt;&amp;gt; parent-child relationship tree during diagram scanning.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Unfortunately am not very skillfull on Perl, but I am more than happy
&lt;br&gt;&amp;gt; to help implement and document it if there's interest. Let me know if
&lt;br&gt;&amp;gt; you'd like me to forward the temporary patch.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; best regards
&lt;br&gt;&amp;gt; albert
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2007/4/18, Mike Ginou &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052439&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt; Albert,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Unfortunately, I don't have any experience with inheritence in an RDBMS.
&lt;br&gt;&amp;gt;&amp;gt; Therefore, I don't think I'm in a good position to add this feature.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If you're willing to dig into it yourself, I would be more than happy to
&lt;br&gt;&amp;gt;&amp;gt; offer suggestions and to answer any questions you might have.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt; Mike
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; albert wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Hi all,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; I've been searching through multiple sites including this official
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; mailing list, on how to implement postgres table inheritance using
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; tedia2sql. There's some mentions about this feature being implemented,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; but sadly enough, grepping through a fresh cvs checked-out revision
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; has returned me no results.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; I'm looking for a way to represent this postgres definition:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; CREATE TABLE a (...) with oids;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; CREATE TABLE b (...) inherits a;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; on a dia diagram which tedia2sql can understand properly.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; best regards
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052439&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052439&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052439&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052439&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052439&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052439&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052439&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10052439&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/postgres-inheritance-tp10029235p10052439.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-10050958</id>
	<title>Re: postgres inheritance</title>
	<published>2007-04-17T19:54:44Z</published>
	<updated>2007-04-17T19:54:44Z</updated>
	<author>
		<name>albert-45</name>
	</author>
	<content type="html">Mike,
&lt;br&gt;&lt;br&gt;Thank you for your support. I have momentarily hacked tedia2sql perl
&lt;br&gt;script to add inheritance to postgres tables when a class is found to
&lt;br&gt;have an operation named &amp;quot;inherits&amp;quot;. Its type is used to refer to the
&lt;br&gt;table name it inherits from. Ugly, but it works for the timing
&lt;br&gt;deadline I am currently on.
&lt;br&gt;&lt;br&gt;Problems:
&lt;br&gt;&lt;br&gt;1. The correct way to interpret inheritance is, as I understand it,
&lt;br&gt;make use of the &amp;quot;Generalization&amp;quot; association type. Have digged into
&lt;br&gt;the source and guess the correct approach is to add the inheritance
&lt;br&gt;info into the class definition when traversing through the association
&lt;br&gt;nodes (a function called generateAssocSqlFromNodeList if I'm not
&lt;br&gt;mistaken).
&lt;br&gt;&lt;br&gt;2. On complex diagrams, the ordering of table definitions will
&lt;br&gt;eventually upset postgres at import time (an inheriting table has to
&lt;br&gt;be defined after the table it inherits from). Not sure if Dia's object
&lt;br&gt;Z-order might help, but safest solution I guess is to build a
&lt;br&gt;parent-child relationship tree during diagram scanning.
&lt;br&gt;&lt;br&gt;Unfortunately am not very skillfull on Perl, but I am more than happy
&lt;br&gt;to help implement and document it if there's interest. Let me know if
&lt;br&gt;you'd like me to forward the temporary patch.
&lt;br&gt;&lt;br&gt;best regards
&lt;br&gt;albert
&lt;br&gt;&lt;br&gt;2007/4/18, Mike Ginou &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10050958&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Albert,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Unfortunately, I don't have any experience with inheritence in an RDBMS.
&lt;br&gt;&amp;gt; Therefore, I don't think I'm in a good position to add this feature.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you're willing to dig into it yourself, I would be more than happy to
&lt;br&gt;&amp;gt; offer suggestions and to answer any questions you might have.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; Mike
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; albert wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hi all,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I've been searching through multiple sites including this official
&lt;br&gt;&amp;gt; &amp;gt; mailing list, on how to implement postgres table inheritance using
&lt;br&gt;&amp;gt; &amp;gt; tedia2sql. There's some mentions about this feature being implemented,
&lt;br&gt;&amp;gt; &amp;gt; but sadly enough, grepping through a fresh cvs checked-out revision
&lt;br&gt;&amp;gt; &amp;gt; has returned me no results.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I'm looking for a way to represent this postgres definition:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; CREATE TABLE a (...) with oids;
&lt;br&gt;&amp;gt; &amp;gt; CREATE TABLE b (...) inherits a;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; on a dia diagram which tedia2sql can understand properly.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; best regards
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10050958&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10050958&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10050958&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10050958&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10050958&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10050958&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/postgres-inheritance-tp10029235p10050958.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-10047552</id>
	<title>Re: postgres inheritance</title>
	<published>2007-04-17T14:51:57Z</published>
	<updated>2007-04-17T14:51:57Z</updated>
	<author>
		<name>Mike Ginou</name>
	</author>
	<content type="html">Albert,
&lt;br&gt;&lt;br&gt;Unfortunately, I don't have any experience with inheritence in an RDBMS.
&lt;br&gt;Therefore, I don't think I'm in a good position to add this feature.
&lt;br&gt;&lt;br&gt;If you're willing to dig into it yourself, I would be more than happy to
&lt;br&gt;offer suggestions and to answer any questions you might have.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;albert wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've been searching through multiple sites including this official
&lt;br&gt;&amp;gt; mailing list, on how to implement postgres table inheritance using
&lt;br&gt;&amp;gt; tedia2sql. There's some mentions about this feature being implemented,
&lt;br&gt;&amp;gt; but sadly enough, grepping through a fresh cvs checked-out revision
&lt;br&gt;&amp;gt; has returned me no results.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm looking for a way to represent this postgres definition:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; CREATE TABLE a (...) with oids;
&lt;br&gt;&amp;gt; CREATE TABLE b (...) inherits a;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; on a dia diagram which tedia2sql can understand properly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; best regards
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10047552&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10047552&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10047552&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10047552&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/postgres-inheritance-tp10029235p10047552.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-10029235</id>
	<title>postgres inheritance</title>
	<published>2007-04-16T22:55:23Z</published>
	<updated>2007-04-16T22:55:23Z</updated>
	<author>
		<name>albert-45</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I've been searching through multiple sites including this official
&lt;br&gt;mailing list, on how to implement postgres table inheritance using
&lt;br&gt;tedia2sql. There's some mentions about this feature being implemented,
&lt;br&gt;but sadly enough, grepping through a fresh cvs checked-out revision
&lt;br&gt;has returned me no results.
&lt;br&gt;&lt;br&gt;I'm looking for a way to represent this postgres definition:
&lt;br&gt;&lt;br&gt;CREATE TABLE a (...) with oids;
&lt;br&gt;CREATE TABLE b (...) inherits a;
&lt;br&gt;&lt;br&gt;on a dia diagram which tedia2sql can understand properly.
&lt;br&gt;&lt;br&gt;best regards
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10029235&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=10029235&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/postgres-inheritance-tp10029235p10029235.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-9404730</id>
	<title>Re: Mysql Syntax</title>
	<published>2007-03-09T15:08:18Z</published>
	<updated>2007-03-09T15:08:18Z</updated>
	<author>
		<name>Robert Fulcher</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 TRANSITIONAL//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
  &lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; CHARSET=UTF-8&quot;&gt;
  &lt;META NAME=&quot;GENERATOR&quot; CONTENT=&quot;GtkHTML/3.12.1&quot;&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
Mike,&lt;BR&gt;
&lt;BR&gt;
Thanks for the info.&amp;nbsp; Everything is working fine now.&amp;nbsp; The tool works really well.&lt;BR&gt;
&lt;BR&gt;
Thanks&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
On Fri, 2007-03-09 at 14:55 -0500, Mike Ginou wrote:
&lt;BLOCKQUOTE TYPE=CITE&gt;
&lt;PRE&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; I did not put in the default key word and am not sure how I got them in there.&lt;/FONT&gt;

&lt;FONT COLOR=&quot;#000000&quot;&gt;tedia2sql puts it there automatically when you place unrecognized values&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;in the value field. Examples of recognized values are &amp;quot;not null&amp;quot; and&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;quot;auto_increment&amp;quot;. Anything that tedia2sql doesn't recognize as a valid&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;keyword for a column is interpreted as being the column's default value.&lt;/FONT&gt;

&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; Thanks for the help.&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; On Fri, 2007-03-09 at 11:37 -0500, Mike Ginou wrote:&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; Robert,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt;&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; I created a very simple diagram that covers the basic schema you have&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; shown below.&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt;&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; I think you wanted to make the columns varchar(40) (variable character&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; fields with a maximum length of 40). To do that you simply specify the&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; length in parentheses as part of the datatype.&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt;&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; Mike&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt;&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; Robert Fulcher wrote:&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; I have a single table and trying to get the hang of building tables in&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; dia and them exporting them to mysql.  I can't get a single table to go&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; over and am not sure what I am doing wrong.  It comes down to sql syntax&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; that is created by tedia2sql (based on what I put in the uml model). &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; Here is what I get:&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; tiadia2sql output:&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; create table contacts (&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt;   id                        int default 10 not null,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt;   firstname                 varchar default 40 NULL,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt;   lastname                  varchar default 40,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt;   created                   datetime,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt;   modified                  datetime,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt;   constraint pk_Contacts primary key (id)&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; ) ;&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; When I try and run it I get:&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; *SQL query:*&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; CREATE TABLE contacts(&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; id int default 10 NOT NULL ,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; firstname varchar default 40 NULL ,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; lastname varchar default 40,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; created datetime,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; modified datetime,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; CONSTRAINT pk_Contacts PRIMARY KEY ( id ) );&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; *MySQL said: *Documentation&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; &amp;lt;&lt;A HREF=&quot;http://dev.mysql.com/doc/refman/5.0/en/error-returns.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.mysql.com/doc/refman/5.0/en/error-returns.html&lt;/A&gt;&amp;gt;&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; #1064 - You have an error in your SQL syntax; check the manual that&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; corresponds to your MySQL server version for the right syntax to use&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; near 'default 40 NULL,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt;   lastname                  varchar default 40,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt;   created    ' at line 3&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; Does anyone know how I can fix this?  I know that I am not putting the&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; info into the uml correctly but am not sure what and how to correct. &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; Also I am using phpmyadmin is there a better tool for running the&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; scripts that are created.&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; &amp;gt; Thanks&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9404730&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt; &amp;lt;mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9404730&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;&amp;gt;&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9404730&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt; &amp;lt;mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9404730&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;&amp;gt;&lt;/FONT&gt;

&lt;FONT COLOR=&quot;#000000&quot;&gt;---------------------------------------------------------------------&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9404730&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9404730&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;&lt;/FONT&gt;

&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Mysql-Syntax-tp9394543p9404730.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-9401695</id>
	<title>Re: Mysql Syntax</title>
	<published>2007-03-09T11:55:13Z</published>
	<updated>2007-03-09T11:55:13Z</updated>
	<author>
		<name>Mike Ginou</name>
	</author>
	<content type="html">&amp;gt; I did not put in the default key word and am not sure how I got them in there.
&lt;br&gt;&lt;br&gt;tedia2sql puts it there automatically when you place unrecognized values
&lt;br&gt;in the value field. Examples of recognized values are &amp;quot;not null&amp;quot; and
&lt;br&gt;&amp;quot;auto_increment&amp;quot;. Anything that tedia2sql doesn't recognize as a valid
&lt;br&gt;keyword for a column is interpreted as being the column's default value.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks for the help.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Fri, 2007-03-09 at 11:37 -0500, Mike Ginou wrote:
&lt;br&gt;&amp;gt;&amp;gt; Robert,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I created a very simple diagram that covers the basic schema you have
&lt;br&gt;&amp;gt;&amp;gt; shown below.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I think you wanted to make the columns varchar(40) (variable character
&lt;br&gt;&amp;gt;&amp;gt; fields with a maximum length of 40). To do that you simply specify the
&lt;br&gt;&amp;gt;&amp;gt; length in parentheses as part of the datatype.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Mike
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Robert Fulcher wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; I have a single table and trying to get the hang of building tables in
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; dia and them exporting them to mysql. &amp;nbsp;I can't get a single table to go
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; over and am not sure what I am doing wrong. &amp;nbsp;It comes down to sql syntax
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; that is created by tedia2sql (based on what I put in the uml model). 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Here is what I get:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; tiadia2sql output:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; create table contacts (
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;nbsp; id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int default 10 not null,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;nbsp; firstname &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; varchar default 40 NULL,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;nbsp; lastname &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;varchar default 40,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;nbsp; created &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; datetime,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;nbsp; modified &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;datetime,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;nbsp; constraint pk_Contacts primary key (id)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; ) ;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; When I try and run it I get:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; *SQL query:*
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; CREATE TABLE contacts(
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; id int default 10 NOT NULL ,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; firstname varchar default 40 NULL ,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; lastname varchar default 40,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; created datetime,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; modified datetime,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; CONSTRAINT pk_Contacts PRIMARY KEY ( id ) );
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; *MySQL said: *Documentation
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;lt;&lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/error-returns.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.mysql.com/doc/refman/5.0/en/error-returns.html&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; #1064 - You have an error in your SQL syntax; check the manual that
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; corresponds to your MySQL server version for the right syntax to use
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; near 'default 40 NULL,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;nbsp; lastname &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;varchar default 40,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;nbsp; created &amp;nbsp; &amp;nbsp;' at line 3
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Does anyone know how I can fix this? &amp;nbsp;I know that I am not putting the
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; info into the uml correctly but am not sure what and how to correct. 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Also I am using phpmyadmin is there a better tool for running the
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; scripts that are created.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Thanks
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9401695&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt; &amp;lt;mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9401695&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9401695&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt; &amp;lt;mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9401695&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9401695&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9401695&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Mysql-Syntax-tp9394543p9401695.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-9400361</id>
	<title>Re: Mysql Syntax</title>
	<published>2007-03-09T10:45:06Z</published>
	<updated>2007-03-09T10:45:06Z</updated>
	<author>
		<name>Robert Fulcher</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 TRANSITIONAL//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
  &lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; CHARSET=UTF-8&quot;&gt;
  &lt;META NAME=&quot;GENERATOR&quot; CONTENT=&quot;GtkHTML/3.12.1&quot;&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
Mike,&lt;BR&gt;
&lt;BR&gt;
Thanks I will give it a try tonight.&amp;nbsp; I did not put in the default key word and am not sure how I got them in there.&lt;BR&gt;
&lt;BR&gt;
Thanks for the help.&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
On Fri, 2007-03-09 at 11:37 -0500, Mike Ginou wrote:
&lt;BLOCKQUOTE TYPE=CITE&gt;
&lt;PRE&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;Robert,&lt;/FONT&gt;

&lt;FONT COLOR=&quot;#000000&quot;&gt;I created a very simple diagram that covers the basic schema you have&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;shown below.&lt;/FONT&gt;

&lt;FONT COLOR=&quot;#000000&quot;&gt;I think you wanted to make the columns varchar(40) (variable character&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;fields with a maximum length of 40). To do that you simply specify the&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;length in parentheses as part of the datatype.&lt;/FONT&gt;

&lt;FONT COLOR=&quot;#000000&quot;&gt;Mike&lt;/FONT&gt;

&lt;FONT COLOR=&quot;#000000&quot;&gt;Robert Fulcher wrote:&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; I have a single table and trying to get the hang of building tables in&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; dia and them exporting them to mysql.  I can't get a single table to go&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; over and am not sure what I am doing wrong.  It comes down to sql syntax&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; that is created by tedia2sql (based on what I put in the uml model). &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; Here is what I get:&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; tiadia2sql output:&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; create table contacts (&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;   id                        int default 10 not null,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;   firstname                 varchar default 40 NULL,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;   lastname                  varchar default 40,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;   created                   datetime,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;   modified                  datetime,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;   constraint pk_Contacts primary key (id)&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; ) ;&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; When I try and run it I get:&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; *SQL query:*&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; CREATE TABLE contacts(&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; id int default 10 NOT NULL ,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; firstname varchar default 40 NULL ,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; lastname varchar default 40,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; created datetime,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; modified datetime,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; CONSTRAINT pk_Contacts PRIMARY KEY ( id ) );&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; *MySQL said: *Documentation&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &amp;lt;&lt;A HREF=&quot;http://dev.mysql.com/doc/refman/5.0/en/error-returns.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.mysql.com/doc/refman/5.0/en/error-returns.html&lt;/A&gt;&amp;gt;&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; #1064 - You have an error in your SQL syntax; check the manual that&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; corresponds to your MySQL server version for the right syntax to use&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; near 'default 40 NULL,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;   lastname                  varchar default 40,&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt;   created    ' at line 3&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; Does anyone know how I can fix this?  I know that I am not putting the&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; info into the uml correctly but am not sure what and how to correct. &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; Also I am using phpmyadmin is there a better tool for running the&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; scripts that are created.&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; &lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;&amp;gt; Thanks&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;---------------------------------------------------------------------&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9400361&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;&lt;/FONT&gt;
&lt;FONT COLOR=&quot;#000000&quot;&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9400361&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;&lt;/FONT&gt;
&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Mysql-Syntax-tp9394543p9400361.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-9400083</id>
	<title>Re: Mysql Syntax</title>
	<published>2007-03-09T10:27:51Z</published>
	<updated>2007-03-09T10:27:51Z</updated>
	<author>
		<name>Time Less</name>
	</author>
	<content type="html">In MySQL you can&amp;#39;t just declare a column &amp;quot;varchar&amp;quot; it must have a max length. Try &amp;quot;varchar(64)&amp;quot; or whatever length you think is maximal.&lt;br&gt;&lt;br&gt;&lt;div&gt;&lt;span class=&quot;gmail_quote&quot;&gt;&lt;/span&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;&lt;tt&gt;#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &amp;#39;default 40 NULL,&lt;/tt&gt;&lt;br&gt;
&lt;tt&gt;&amp;nbsp;&amp;nbsp;lastname&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;varchar default 40,&lt;/tt&gt;&lt;br&gt;
&lt;tt&gt;&amp;nbsp; created&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39; at line 3&lt;/tt&gt;&lt;br&gt;
&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;-- &lt;br&gt;timeless(ness)&lt;br&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Mysql-Syntax-tp9394543p9400083.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-9397843</id>
	<title>Re: Mysql Syntax</title>
	<published>2007-03-09T08:37:26Z</published>
	<updated>2007-03-09T08:37:26Z</updated>
	<author>
		<name>Mike Ginou</name>
	</author>
	<content type="html">Robert,
&lt;br&gt;&lt;br&gt;I created a very simple diagram that covers the basic schema you have
&lt;br&gt;shown below.
&lt;br&gt;&lt;br&gt;I think you wanted to make the columns varchar(40) (variable character
&lt;br&gt;fields with a maximum length of 40). To do that you simply specify the
&lt;br&gt;length in parentheses as part of the datatype.
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;Robert Fulcher wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have a single table and trying to get the hang of building tables in
&lt;br&gt;&amp;gt; dia and them exporting them to mysql. &amp;nbsp;I can't get a single table to go
&lt;br&gt;&amp;gt; over and am not sure what I am doing wrong. &amp;nbsp;It comes down to sql syntax
&lt;br&gt;&amp;gt; that is created by tedia2sql (based on what I put in the uml model). 
&lt;br&gt;&amp;gt; Here is what I get:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; tiadia2sql output:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; create table contacts (
&lt;br&gt;&amp;gt; &amp;nbsp; id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int default 10 not null,
&lt;br&gt;&amp;gt; &amp;nbsp; firstname &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; varchar default 40 NULL,
&lt;br&gt;&amp;gt; &amp;nbsp; lastname &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;varchar default 40,
&lt;br&gt;&amp;gt; &amp;nbsp; created &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; datetime,
&lt;br&gt;&amp;gt; &amp;nbsp; modified &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;datetime,
&lt;br&gt;&amp;gt; &amp;nbsp; constraint pk_Contacts primary key (id)
&lt;br&gt;&amp;gt; ) ;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; When I try and run it I get:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; *SQL query:*
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; CREATE TABLE contacts(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; id int default 10 NOT NULL ,
&lt;br&gt;&amp;gt; firstname varchar default 40 NULL ,
&lt;br&gt;&amp;gt; lastname varchar default 40,
&lt;br&gt;&amp;gt; created datetime,
&lt;br&gt;&amp;gt; modified datetime,
&lt;br&gt;&amp;gt; CONSTRAINT pk_Contacts PRIMARY KEY ( id ) );
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; *MySQL said: *Documentation
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/error-returns.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.mysql.com/doc/refman/5.0/en/error-returns.html&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; #1064 - You have an error in your SQL syntax; check the manual that
&lt;br&gt;&amp;gt; corresponds to your MySQL server version for the right syntax to use
&lt;br&gt;&amp;gt; near 'default 40 NULL,
&lt;br&gt;&amp;gt; &amp;nbsp; lastname &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;varchar default 40,
&lt;br&gt;&amp;gt; &amp;nbsp; created &amp;nbsp; &amp;nbsp;' at line 3
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Does anyone know how I can fix this? &amp;nbsp;I know that I am not putting the
&lt;br&gt;&amp;gt; info into the uml correctly but am not sure what and how to correct. 
&lt;br&gt;&amp;gt; Also I am using phpmyadmin is there a better tool for running the
&lt;br&gt;&amp;gt; scripts that are created.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks
&lt;/div&gt;&lt;/div&gt;&lt;br /&gt; &lt;br /&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9397843&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9397843&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;db.dia&lt;/strong&gt; (1K) &lt;a href=&quot;http://www.nabble.com/attachment/9397843/0/db.dia&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Mysql-Syntax-tp9394543p9397843.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-9397424</id>
	<title>Re: Mysql Syntax</title>
	<published>2007-03-09T08:19:06Z</published>
	<updated>2007-03-09T08:19:06Z</updated>
	<author>
		<name>Mike Ginou</name>
	</author>
	<content type="html">There is certainly an error in the tedia2sql output. As the error
&lt;br&gt;message indicates, the NULL as part of the firstname column definition
&lt;br&gt;should not be there. Additionally the default clauses are definitely
&lt;br&gt;confusing. Do you really want those, or are they just artifacts of
&lt;br&gt;tedia2sql being confusing?
&lt;br&gt;&lt;br&gt;What *should* the script look like?
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;Robert Fulcher wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have a single table and trying to get the hang of building tables in
&lt;br&gt;&amp;gt; dia and them exporting them to mysql. &amp;nbsp;I can't get a single table to go
&lt;br&gt;&amp;gt; over and am not sure what I am doing wrong. &amp;nbsp;It comes down to sql syntax
&lt;br&gt;&amp;gt; that is created by tedia2sql (based on what I put in the uml model). 
&lt;br&gt;&amp;gt; Here is what I get:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; tiadia2sql output:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; create table contacts (
&lt;br&gt;&amp;gt; &amp;nbsp; id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int default 10 not null,
&lt;br&gt;&amp;gt; &amp;nbsp; firstname &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; varchar default 40 NULL,
&lt;br&gt;&amp;gt; &amp;nbsp; lastname &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;varchar default 40,
&lt;br&gt;&amp;gt; &amp;nbsp; created &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; datetime,
&lt;br&gt;&amp;gt; &amp;nbsp; modified &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;datetime,
&lt;br&gt;&amp;gt; &amp;nbsp; constraint pk_Contacts primary key (id)
&lt;br&gt;&amp;gt; ) ;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; When I try and run it I get:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; *SQL query:*
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; CREATE TABLE contacts(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; id int default 10 NOT NULL ,
&lt;br&gt;&amp;gt; firstname varchar default 40 NULL ,
&lt;br&gt;&amp;gt; lastname varchar default 40,
&lt;br&gt;&amp;gt; created datetime,
&lt;br&gt;&amp;gt; modified datetime,
&lt;br&gt;&amp;gt; CONSTRAINT pk_Contacts PRIMARY KEY ( id ) );
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; *MySQL said: *Documentation
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/error-returns.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.mysql.com/doc/refman/5.0/en/error-returns.html&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; #1064 - You have an error in your SQL syntax; check the manual that
&lt;br&gt;&amp;gt; corresponds to your MySQL server version for the right syntax to use
&lt;br&gt;&amp;gt; near 'default 40 NULL,
&lt;br&gt;&amp;gt; &amp;nbsp; lastname &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;varchar default 40,
&lt;br&gt;&amp;gt; &amp;nbsp; created &amp;nbsp; &amp;nbsp;' at line 3
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Does anyone know how I can fix this? &amp;nbsp;I know that I am not putting the
&lt;br&gt;&amp;gt; info into the uml correctly but am not sure what and how to correct. 
&lt;br&gt;&amp;gt; Also I am using phpmyadmin is there a better tool for running the
&lt;br&gt;&amp;gt; scripts that are created.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9397424&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=9397424&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Mysql-Syntax-tp9394543p9397424.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-9394543</id>
	<title>Mysql Syntax</title>
	<published>2007-03-09T05:44:45Z</published>
	<updated>2007-03-09T05:44:45Z</updated>
	<author>
		<name>Robert Fulcher</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 TRANSITIONAL//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
  &lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; CHARSET=UTF-8&quot;&gt;
  &lt;META NAME=&quot;GENERATOR&quot; CONTENT=&quot;GtkHTML/3.12.1&quot;&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
I have a single table and trying to get the hang of building tables in dia and them exporting them to mysql.&amp;nbsp; I can't get a single table to go over and am not sure what I am doing wrong.&amp;nbsp; It comes down to sql syntax that is created by tedia2sql (based on what I put in the uml model).&amp;nbsp; Here is what I get:&lt;BR&gt;
&lt;BR&gt;
tiadia2sql output: &lt;BR&gt;
&lt;BR&gt;
create table contacts (&lt;BR&gt;
&amp;nbsp; id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int default 10 not null,&lt;BR&gt;
&amp;nbsp; firstname&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; varchar default 40 NULL,&lt;BR&gt;
&amp;nbsp; lastname&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; varchar default 40,&lt;BR&gt;
&amp;nbsp; created&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datetime,&lt;BR&gt;
&amp;nbsp; modified&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datetime,&lt;BR&gt;
&amp;nbsp; constraint pk_Contacts primary key (id)&lt;BR&gt;
) ;&lt;BR&gt;
&lt;BR&gt;
When I try and run it I get:&lt;BR&gt;
&lt;BR&gt;
&lt;B&gt;SQL query:&lt;/B&gt; &lt;BR&gt;
&lt;BR&gt;
CREATE TABLE contacts(&lt;BR&gt;
&lt;BR&gt;
id int default 10 NOT NULL ,&lt;BR&gt;
firstname varchar default 40 NULL ,&lt;BR&gt;
lastname varchar default 40,&lt;BR&gt;
created datetime,&lt;BR&gt;
modified datetime,&lt;BR&gt;
CONSTRAINT pk_Contacts PRIMARY KEY ( id ) );&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;B&gt;MySQL said: &lt;/B&gt;&lt;A HREF=&quot;http://dev.mysql.com/doc/refman/5.0/en/error-returns.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;IMG SRC=&quot;http://localhost/phpmyadmin/themes/original/img/b_help.png&quot; WIDTH=&quot;11&quot; HEIGHT=&quot;11&quot; ALIGN=&quot;bottom&quot; ALT=&quot;Documentation&quot;&gt;&lt;/A&gt;&lt;BR&gt;
&lt;BR&gt;
&lt;TT&gt;#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'default 40 NULL,&lt;/TT&gt;&lt;BR&gt;
&lt;TT&gt;&amp;nbsp;&amp;nbsp;lastname&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;varchar default 40,&lt;/TT&gt;&lt;BR&gt;
&lt;TT&gt;&amp;nbsp; created&amp;nbsp;&amp;nbsp;&amp;nbsp; ' at line 3&lt;/TT&gt;&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
Does anyone know how I can fix this?&amp;nbsp; I know that I am not putting the info into the uml correctly but am not sure what and how to correct.&amp;nbsp; Also I am using phpmyadmin is there a better tool for running the scripts that are created.&lt;BR&gt;
&lt;BR&gt;
Thanks
&lt;/BODY&gt;
&lt;/HTML&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Mysql-Syntax-tp9394543p9394543.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-8695947</id>
	<title>[patch] forcing numeric pri keys as auto_increment</title>
	<published>2007-01-29T08:40:56Z</published>
	<updated>2007-01-29T08:40:56Z</updated>
	<author>
		<name>pete-61</name>
	</author>
	<content type="html">hi all,
&lt;br&gt;&lt;br&gt;first, mega thx for tim &amp;nbsp;&amp; all the authors of tedia2sql! The code is
&lt;br&gt;extremely nicely structured and well commented, so even I who is a perl
&lt;br&gt;illiterate, was able to add this feature!
&lt;br&gt;&lt;br&gt;About the patch: it makes effect only when the -a switch is given on the
&lt;br&gt;command line, and it forces an auto_increment attribute for mysql and innodb
&lt;br&gt;table /dbms types if the primary key is a numeric (any kind of int).
&lt;br&gt;&lt;br&gt;The patch was generated using diff -Naur and applies for tedia2sql-1.2.12
&lt;br&gt;&lt;br&gt;&lt;br&gt;best,
&lt;br&gt;&amp;nbsp;----
&lt;br&gt;Péter
&lt;br&gt;&lt;br&gt;&lt;br /&gt;--- ./tedia2sql.old	2004-12-12 19:21:50.000000000 +0100
&lt;br&gt;+++ ./tedia2sql	2007-01-29 16:39:30.117495300 +0100
&lt;br&gt;@@ -126,7 +126,7 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#Getopts ('i:o:t:v:p:gsdhcuCfbkmM');
&lt;br&gt;&amp;nbsp;my %opts = ();
&lt;br&gt;-getopts('i:o:t:v:p:gsdhcuCfbkmM', \%opts);
&lt;br&gt;+getopts('i:o:t:v:p:gsdhcuCfbkmMa', \%opts);
&lt;br&gt;&amp;nbsp;my $opt_i = $opts{'i'};
&lt;br&gt;&amp;nbsp;my $opt_o = $opts{'o'};
&lt;br&gt;&amp;nbsp;my $opt_t = $opts{'t'};
&lt;br&gt;@@ -144,6 +144,7 @@
&lt;br&gt;&amp;nbsp;my $opt_k = $opts{'k'};
&lt;br&gt;&amp;nbsp;my $opt_m = $opts{'m'};
&lt;br&gt;&amp;nbsp;my $opt_M = $opts{'M'};
&lt;br&gt;+my $opt_a = $opts{'a'};
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;my $defaultPK = [ ];
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -582,7 +583,7 @@
&lt;br&gt;&amp;nbsp;	print &amp;quot;FITNESS FOR A PARTICULAR PURPOSE. &amp;nbsp;See the GNU General Public License for\n&amp;quot;;
&lt;br&gt;&amp;nbsp;	print &amp;quot;more details.\n&amp;quot;;
&lt;br&gt;&amp;nbsp;	print &amp;quot;\n&amp;quot;;
&lt;br&gt;-	print &amp;quot;Usage: $0 [-t &amp;lt;dbType&amp;gt;] [-g] [-s] [-d] [-v {1 | 2}] [-h] [-i &amp;lt;xmlIn&amp;gt;] -o &amp;lt;sqlOut&amp;gt; inputFiles...\n&amp;quot;;
&lt;br&gt;+	print &amp;quot;Usage: $0 [-t &amp;lt;dbType&amp;gt;] [-a] [-g] [-s] [-d] [-v {1 | 2}] [-h] [-i &amp;lt;xmlIn&amp;gt;] -o &amp;lt;sqlOut&amp;gt; inputFiles...\n&amp;quot;;
&lt;br&gt;&amp;nbsp;	print &amp;quot;\n&amp;quot;;
&lt;br&gt;&amp;nbsp;	print &amp;quot;\t &amp;nbsp;-g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(Deprecated, gzip status now autodeteced) Dia XML savefile *NOT* gzipped\n&amp;quot;;
&lt;br&gt;&amp;nbsp;	print &amp;quot;\t &amp;nbsp;-t &amp;lt;dbType&amp;gt