Hi all,
Today Istarted working with axmls, downloaded the latest adodb, and now I'm experiencing some probs with ExtractSchema.
First problem was that I was getting a fatal error (Call to undefined function) on line 1950, which is
$type = $rs->MetaType( $details );
This doesn't work,
I changed it to $type = $this->dict->MetaType( $details );
and it works
Can somebody please check this and tell me if this is correct?
OK, the second problem is that I get no autoincrement tags
Weird about this is that I created a second little script to extract metadata directly with adodb-datadict.
MetaColumns($tab) returns more params than xmlschema.
It didn't change using $this->dict instead of $this->db.
db is postgresql, driver postgres7
datadict:
Array ( [ID] => adofieldobject Object ( [name] => id [max_length] => 4 [type] => int4 [not_null] => 1 [has_default] => 1 [default_value] => nextval('public.backup_log_id_seq'::text) [primary_key] => 1 [unique] => 1 )
xmlschema on the same field:
Array ( [ID] => adofieldobject Object ( [name] => id [max_length] => 4 [type] => int4 [not_null] => 1 [has_default] => 1 [default_value] => )
Any help would be appreciated.
BTW, many thanks to the authors, I like it.
cheers
gaucho
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
Today Istarted working with axmls, downloaded the latest adodb, and now I'm experiencing some probs with ExtractSchema.
First problem was that I was getting a fatal error (Call to undefined function) on line 1950, which is
$type = $rs->MetaType( $details );
This doesn't work,
I changed it to $type = $this->dict->MetaType( $details );
and it works
Can somebody please check this and tell me if this is correct?
OK, the second problem is that I get no autoincrement tags
Weird about this is that I created a second little script to extract metadata directly with adodb-datadict.
MetaColumns($tab) returns more params than xmlschema.
It didn't change using $this->dict instead of $this->db.
db is postgresql, driver postgres7
datadict:
Array ( [ID] => adofieldobject Object ( [name] => id [max_length] => 4 [type] => int4 [not_null] => 1 [has_default] => 1 [default_value] => nextval('public.backup_log_id_seq'::text) [primary_key] => 1 [unique] => 1 )
xmlschema on the same field:
Array ( [ID] => adofieldobject Object ( [name] => id [max_length] => 4 [type] => int4 [not_null] => 1 [has_default] => 1 [default_value] => )
Any help would be appreciated.
BTW, many thanks to the authors, I like it.
cheers
gaucho
OK,
was a little to fast with my first statement.
Read the post just behind of mine, and at least the problem with the fatal error is gone using $rs.
Again, sorry.