Re: SQL
Re: SQL
- Subject: Re: SQL
- From: Ron X <email@hidden>
- Date: Fri, 13 Apr 2012 14:07:36 +0300
thank you very much! very good!
this method considered deprecated - is there non-deprecated method?
maybe you know where can i set timing for sql-query - cuz i have "request too long" exception every query more 5 s?
13 апреля 2012 г. 11:50 пользователь Henrique Gomes
<email@hidden> написал:
On Apr 13, 2012, at 9:19 AM, Ron X wrote:
> @Override
> public WOActionResults defaultAction() {
> NSArray<Chart> result = EOUtilities.rawRowsForSQL(session().defaultEditingContext(), Chart.ENTITY_NAME, "SELECT count(*), sum(size)");
>
> return pageWithName(Main.class);
> }
>
> ERROR 47.15 MB used/33.91 MB free [WorkerThread0] (ERD2WDirectAction.java:480) (Error) - Error with action default:com.webobjects.eoaccess.EOObjectNotAvailableException:
The second argument is the Model name, not the entity / table:
> databaseContextForModelNamed: cannot find model named Chart associated with this EOEditingContext, formValues:{}
and the sql must be a complete sentence; SELECT ... FROM table;
HG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
- Follow-Ups:
- Re: SQL
- From: Larry Mills-Gahl <email@hidden>
References: | |
| >SQL (From: Ron X <email@hidden>) |
| >Re: SQL (From: David LeBer <email@hidden>) |
| >Re: SQL (From: Ron X <email@hidden>) |
| >Re: SQL (From: Ramsey Gurley <email@hidden>) |
| >Re: SQL (From: Ron X <email@hidden>) |
| >Re: SQL (From: John Huss <email@hidden>) |
| >Re: SQL (From: Ron X <email@hidden>) |
| >Re: SQL (From: Henrique Gomes <email@hidden>) |