I have a table on dev findAll() works, moved the code to qa, and it
gives "Wheels.ColumnNotFound". I recreated the xxx table from qa but
called it, xxx2 and point the model cfc to the new table. And the
code works.
Switch to original table, code breaks. Wheels.ColumnNotFound
Wheels looked for the column mapped to the xxxid property but couldn't
find it in the database table.
Thanks,
FYI - Wheels 1.0.3
line 1041 /wheels/model/crud.cfm
original xxx table:
SELECT xxx.xxxID AS xxxtypeid,
xxx.xxxtype AS xxxtype,
xxx.DATEUPDATED, , ,
FROM xxx
xxx2 table:
SELECT 0xxx2.xxxtype AS xxxtype,
0xxx2.DATEUPDATED,
0xxx2.xxxID AS xxxtypeid
FROM xxx2
I am using Oracle 10g for the db.
On Wed, Apr 7, 2010 at 7:53 PM, Mike Henke <henk...@gmail.com> wrote:
> http://code.google.com/p/cfwheels/issues/detail?id=437
>
> --
> You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
> To post to this group, send email to cfwh...@googlegroups.com.
> To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.
>
>
----
I am focusing on the qa db now with the same set of wheels code. I
have the original table and a duplicated table in Oracle. The
duplicated table works but the original doesn't when I change the
<cfset table("xxx") /> in wheels model.
I am not sure if this is part of the issue but noticed for the
original table when dumping the loc in the function $addSelectClause
of /wheels/model/crud.cfm these variables have duplicated columns
listed:
loc.addedproperties
loc.addedpropertiesbymodel.fundingType (correct)
loc.classdata.columnlist
loc.classdata.propertylist
loc.classes[1].columnlist
loc.classes[1].propertylist
On Thu, Apr 8, 2010 at 2:23 PM, Mike Henke <henk...@gmail.com> wrote:
> and the application.wheels.showErrorInformation is true.
>
> What's the difference between "dev" and "qa"?
It seems to be something with how Len(loc.toAppend) is created within
the $addSelectClause. In the working table, it is 56, but 0 in the
not working table.
Let's forget I mentioned dev. I am working on one database server
with one server instance and codebase. The database had a table which
Wheels doubles the actual columns for loc.classData.propertyList and
arguments.select. I recreated the table with a different name and this
new table doesn't duplicate the columns for those variables. I can't
find anything different with the tables but Wheels is some reason
doubling the columns in loc.classData.propertyList
In /wheels/model/crud.cfm
line 974 arguments.select is blank
line 986 arguments.select has double the actual columns
CREATE UNIQUE INDEX PM_PROGRAMFUNDINGTYPE_PK ON PM_PROGRAMFUNDINGTYPE
(PM_PROGRAMFUNDINGTYPEID ASC, PM_PROGRAMFUNDINGTYPEID ASC);
ALTER TABLE PM_PROGRAMFUNDINGTYPE ADD CONSTRAINT
PM_PROGRAMFUNDINGTYPE_PK PRIMARY KEY (PM_PROGRAMFUNDINGTYPEID);
init for cfc mode of this table
<cffunction name="init">
<cfset datasource(get('myapp').mySecondDatabase) />
<cfset table("pm_programFundingType") />
<cfset property(name="fundingtypeid",
column="PM_PROGRAMFUNDINGTYPEID") />
<cfset property(name="fundingtype", column="PROGRAMFUNDINGTYPE") />
</cffunction>
I can email you any dumps of variables offline if you request any.
William
On Apr 10, 9:01 am, Per Djurner <per.djur...@gmail.com> wrote:
> Interesting... Mike, maybe you can run cfdbinfo against the table and
> see if it returns duplicate columns for that table?
>
On Apr 12, 10:00 am, Per Djurner <per.djur...@gmail.com> wrote:
> Wheels relies on cfdbinfo for its info.
> If cfdbinfo returns duplicate column names then that is the problem and not
> any "jumping" of owners, right?
I'll submit a ticket to Adobe but is there a way Wheels can fix this
issue until Adobe does?
On Apr 12, 10:35 am, Chris Peters <ch...@clearcrystalmedia.com> wrote:
> Maybe you should specify to Adobe that it's happening with Oracle and which
> version. This doesn't happen to the rest of us with MySQL and SQL Server
> from what I understand.
>
> On Mon, Apr 12, 2010 at 10:32 AM, Mike Henke <henkem...@gmail.com> wrote:
> > Ticket for Adobe:
> >http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#...
>
> > On Apr 12, 10:22 am, Mike Henke <henkem...@gmail.com> wrote:
> > > On Apr 12, 10:00 am, Per Djurner <per.djur...@gmail.com> wrote:> Wheels
> > relies on cfdbinfo for its info.
> > > > If cfdbinfo returns duplicate column names then that is the problem and
> > not
> > > > any "jumping" of owners, right?
>
> > > I'll submit a ticket to Adobe but is there a way Wheels can fix this
> > > issue until Adobe does?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ColdFusion on Wheels" group.
> > To post to this group, send email to cfwh...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > cfwheels+u...@googlegroups.com<cfwheels%2Bunsu...@googlegroups.com>
--
Could you create an Oracle synonym for the "duplicated" table? If the
table is 'cars', maybe you could create a synonym similar to
'my_app_cars', and then point your model to the synonym. Not pretty,
but you could revert to the table name if/when the issue is resolved.
Just a thought ...
I suspect that renaming the tables is not possible, or you would have
done that already. :-)
cfdbinfo has an attribute "username" and if you set that to the
correct the
username then you should not get duplicates. So this might be back to
cfhweels. If the username is specified somewhere that cfwheels then
maybe cfwheels should include it when it calls cfdbinfo.
Some how Wheels is returning the correct columns for
loc.addedpropertiesbymodel.fundingType and classdata.properties /
classes.properties .
On Apr 12, 10:00 am, Per Djurner <per.djur...@gmail.com> wrote:
> Wheels relies on cfdbinfo for its info.
> If cfdbinfo returns duplicate column names then that is the problem and not
> any "jumping" of owners, right?
--
It's a completely different issue to yours but I began writing a
plugin to override $dbinfo with a query to the ALL_TAB_COLUMNS table.
It might need some more work but if you are looking to get this
working on Wheels while you wait for Adobe this might give you a
starting point.
You could try adding a condition to check that the Owner field matches
#arguments.username# or something. I haven't uploaded it to the Wheels
website cause it's still a work in progress but feel free to use it if
it's helpful to you:-
http://cfwheels-dbmigrate.googlecode.com/files/OracleDBInfo-0.1.zip