• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
weird sql generation problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

weird sql generation problem


  • Subject: weird sql generation problem
  • From: Tim Worman <email@hidden>
  • Date: Mon, 31 Aug 2009 14:54:41 -0700

WO'ers:

My app is crashing with an sql error that looks like this:

SQL ERROR - [position 572, near 'WHERE' in 'IBUTION t0 WHERE (t0.is_d'] (1) field 'id' not found in table 'FUND_DISTRIBUTION'. SQL: SELECT t0.account_number, t0.appt_begin_date, t0.appt_num, t0.cost_center_code, t0.create_date, t0.dist_dept_code, t0.dist_num, t0.dist_off_above, t0.dist_payrate_hour, t0.dist_payrate_month, t0.dist_percent, t0.dist_perq, t0.dist_step, t0.dos_earnings_type, t0.emp_full_name, t0.emp_status, t0.employee_id, t0.fund_distribution_id, t0.fund_number, t0.hrly_as_mthly_est, t0.id, t0.is_debit, t0.job_id, t0.location_code, t0.modify_date, t0.pay_begin_date, t0.pay_end_date, t0.project, t0.sub_code, t0.sub_location, t0.title_code, t0.work_study_pgm FROM FUND_DISTRIBUTION t0 WHERE (t0.is_debit = 'false' AND (t0.dos_earnings_type <> 'STP' AND t0.dos_earnings_type <> 'RES' AND t0.job_id = 219)) ORDER BY t0.pay_end_date DESC

In my model there is no "id" attribute for the FundDistribution entity. The table obviously doesn't have a matching column hence the error. But why is sql being generated for an attribute that doesn't exist? I looked at FundDistribution.plist in the model and there is no "id" attribute in there.

I've recently been refactoring a large monolithic model/framework into smaller focused models/frameworks. As part of this I've also been moving to utilizing prototypes. In some cases I'm using the "id" prototype for certain primary/foreign key attributes. Could this be a genesis of this issue?

The destination database is OpenBase.

Thanks for any help,

Tim Worman
UCLA GSE&IS
 _______________________________________________
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: weird sql generation problem
      • From: Ray Kiddy <email@hidden>
  • Prev by Date: Re: Nested WOSwitchComponents
  • Next by Date: Snow Leopard Development and Deployment
  • Previous by thread: Re: Nested WOSwitchComponents
  • Next by thread: Re: weird sql generation problem
  • Index(es):
    • Date
    • Thread