Re: [Gambas-user] SHELL command with python does not execute!

2010-02-12 Thread Benoît Minisini
> Benoît Minisini ha scritto: > > Query to Benoit ... is there a way to define 'NOT NULL' entry via > > gambas code ? > > You have to define the default value. What's the point of having a > mandatory field (NOT NULL) without a default value? > >>> > >>> just say i want somet

Re: [Gambas-user] SHELL command with python does not execute!

2010-02-12 Thread Doriano Blengino
Benoît Minisini ha scritto: >> > > Query to Benoit ... is there a way to define 'NOT NULL' entry via > gambas code ? > You have to define the default value. What's the point of having a mandatory field (NOT NULL) without a default value? >>> just s

Re: [Gambas-user] SHELL command with python does not execute!

2010-02-11 Thread Fabien Bodard
2010/2/11 Vassilis K : > I 'll use the Gambas Mysql commands to make a table ! it works ! > The reason that I asked you is that the code for creating a Mysql table > in Gambas is less accurate than the code of python. no at same... but the gambas code way allow you to change the database server wit

Re: [Gambas-user] SHELL command with python does not execute!

2010-02-11 Thread Benoît Minisini
> Fabien Bodard ha scritto: > > Le 11 février 2010 15:23, Benoît Minisini > > > > a écrit : > >>> sql = "CREATE TABLE Aplianikis (" > >>> "aa BIGINT(20) NOT NULL auto_increment," > >>> "Eponimia VARCHAR(40) NOT NULL," > >>> "AFM VARCHAR(18) NOT NULL," > >>> "Hmerom

Re: [Gambas-user] SHELL command with python does not execute!

2010-02-11 Thread Vassilis K
I 'll use the Gambas Mysql commands to make a table ! it works ! The reason that I asked you is that the code for creating a Mysql table in Gambas is less accurate than the code of python. -- SOLARIS 10 is the OS for Data

Re: [Gambas-user] SHELL command with python does not execute!

2010-02-11 Thread Doriano Blengino
Fabien Bodard ha scritto: > Le 11 février 2010 15:23, Benoît Minisini > a écrit : > >>> sql = "CREATE TABLE Aplianikis (" >>> "aa BIGINT(20) NOT NULL auto_increment," >>> "Eponimia VARCHAR(40) NOT NULL," >>> "AFM VARCHAR(18) NOT NULL," >>> "Hmerominia DATE NOT N

Re: [Gambas-user] SHELL command with python does not execute!

2010-02-11 Thread Fabien Bodard
Le 11 février 2010 15:23, Benoît Minisini a écrit : >> sql = "CREATE TABLE Aplianikis (" >>         "aa BIGINT(20) NOT NULL auto_increment," >>         "Eponimia VARCHAR(40) NOT NULL," >>         "AFM  VARCHAR(18) NOT NULL," >>         "Hmerominia DATE NOT NULL," >>         "Checkbox TINYINT(1) NO

Re: [Gambas-user] SHELL command with python does not execute!

2010-02-11 Thread Benoît Minisini
> sql = "CREATE TABLE Aplianikis (" > "aa BIGINT(20) NOT NULL auto_increment," > "Eponimia VARCHAR(40) NOT NULL," > "AFM VARCHAR(18) NOT NULL," > "Hmerominia DATE NOT NULL," > "Checkbox TINYINT(1) NOT NULL," > "primary key(aa)" > ")" >

Re: [Gambas-user] SHELL command with python does not execute!

2010-02-11 Thread Fabien Bodard
sql = "CREATE TABLE Aplianikis (" "aa BIGINT(20) NOT NULL auto_increment," "Eponimia VARCHAR(40) NOT NULL," "AFM VARCHAR(18) NOT NULL," "Hmerominia DATE NOT NULL," "Checkbox TINYINT(1) NOT NULL," "primary key(aa)" ")" "DEFAULT CHARSET

Re: [Gambas-user] SHELL command with python does not execute!

2010-02-11 Thread Vassilis K
I am using python because it executes the table creation commands with the same type like in terminal mode. For example in python we write: sql = """CREATE TABLE Aplianikis ( aa BIGINT(20) NOT NULL auto_increment, Eponimia VARCHAR(40) NOT NULL, AFM VARCHAR(18) NOT NULL,

Re: [Gambas-user] SHELL command with python does not execute!

2010-02-11 Thread Doriano Blengino
Fabien Bodard ha scritto: > >>> >>> I am using the following code for the creation of a table in a Mysql DB: >>> >>> >>> SHELL"python >>> /home/delphi/Documents/Apodeixi/dimiourgiaTableMYSQLmePython1.py" IF ERROR >>> THEN >>> Message.Error(DConv(Error.Text)) >>> ENDIF >>> >>> The co

Re: [Gambas-user] SHELL command with python does not execute!

2010-02-11 Thread Fabien Bodard
and why are you using python to create your table ??? Le 11 février 2010 12:35, Benoît Minisini a écrit : >> Hello again, >> >> I am using the following code for the creation of a table in a Mysql DB: >> >> >> SHELL"python >>  /home/delphi/Documents/Apodeixi/dimiourgiaTableMYSQLmePython1.py" IF E

Re: [Gambas-user] SHELL command with python does not execute!

2010-02-11 Thread Benoît Minisini
> Hello again, > > I am using the following code for the creation of a table in a Mysql DB: > > > SHELL"python > /home/delphi/Documents/Apodeixi/dimiourgiaTableMYSQLmePython1.py" IF ERROR > THEN > Message.Error(DConv(Error.Text)) > ENDIF > > The command works perfectly and it cr

[Gambas-user] SHELL command with python does not execute!

2010-02-11 Thread Vassilis K
Hello again, I am using the following code for the creation of a table in a Mysql DB: SHELL"python /home/delphi/Documents/Apodeixi/dimiourgiaTableMYSQLmePython1.py" IF ERROR THEN Message.Error(DConv(Error.Text)) ENDIF The command works perfectly and it creates the table.