7: SELECT * FROM users
8: </cfquery><cfdump var="#test#"><!---cfabort--->
9: <cfset user = model("user").new()>
10: </cffunction>
11:
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/wJ17LoIKNnwJ.
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.
until you hear a better suggestion, maybe try capitalising the table name
<cfset user = model("User").new()>
So in my new setup of Tomcat + Railo 3.3.4.003 final, with CFWheels 1.1.8 and java 1.7.0_05, when I attempt the following code:<cfquery name="test" datasource="#GET('datasourcename')#">SELECT * FROM users</cfquery><cfdump var="#test#"><cfset user = model("user").new()>I get a dump of the users table, and then the cfwheels error: The users table could not be found in the database.Highlighting the line as follows:7: SELECT * FROM users 8: </cfquery><cfdump var="#test#"><!---cfabort---> 9: <cfset user = model("user").new()> 10: </cffunction> 11:
My user.cfc model doesn't set the table name also I don't have any callbacks set on the model.Anyone have any idea why this would happen? I've tried downgrading java to 1.6.0_33 to see if it was a java issue but that didn't help either. I have another server running on a different machine that runs the same thing fine (it's an exact copy thanks to SVN).Thanks,~Simeon.
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/wJ17LoIKNnwJ.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/jC2u3k9qyq4J.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
so could it be the cfquery is using a different user than what is defined in wheels??
On 19 July 2012 21:35, Chris Peters <chris....@liquifusion.com> wrote:
Usually, this sort of thing will happen because of how permissions are configured on the database or database table. Can you play around with those and see if it affects the new() method's access to the data?
Thanks for both suggestions, neither of them worked.Those extra details I forgot earlier - Windows Server 2008 rc 2 and MSSQL on a SQL Server 10.5.Everything, database and webserver, is on the same windows box.Thanks, Simeon.--To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/jC2u3k9qyq4J.
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To unsubscribe from this group, send email to cfwheels+unsubscribe@googlegroups.com.
--
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+unsubscribe@googlegroups.com.
Scope Arguments | ||||
table | 1 |
| ||
datasource | 2 |
| ||
path | 3 |
| ||
fileName | 4 |
| ||
method | 5 |
| ||
RETURNVARIABLE | 6 |
| ||
COMPONENT | 7 |
| ||
TYPE | 8 |
| ||
NAME | 9 |
|
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/W0DClS5CPwIJ.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
Struct | |||
cached |
| ||
executionTime |
| ||
generatedKey |
| ||
IDENTITYCOL |
| ||
RECORDCOUNT |
| ||
SQL |
|
JTDS Driver: (Notice there is no IDENTITYCOL key)
Struct | |||
cached |
| ||
executionTime |
| ||
generatedKey |
| ||
ID |
| ||
RECORDCOUNT |
| ||
SQL |
|
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/vhrAzV4qBzEJ.
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.