• 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
migrations and return values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

migrations and return values


  • Subject: migrations and return values
  • From: Theodore Petrosky <email@hidden>
  • Date: Sat, 14 Feb 2009 05:04:02 -0800 (PST)

is there a way to set values in the database from a migration. I refer to something like this:

SELECT setval('t_plum_job_seq', 1000)

If I issue a normal

ERXJDBCUtilities.executeUpdate(database.adaptorChannel(), "SELECT setval('t_plum_job_seq', 1000)");

This generates an error because of the return value.

Is there a way to do this? I am using the sequence to generate 'job numbers' and I want them to start at 1000. BTW, this is the PK of the table if that matters.

Ted



 _______________________________________________
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: migrations and return values
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: ERXKey<$attribute.javaClassName> error on the _<Entity> class file of my entities.
  • Next by Date: Migration failed creating a Doble.
  • Previous by thread: Re: no prototype in the EoModel Entities, Was $atribute problem in entities
  • Next by thread: Re: migrations and return values
  • Index(es):
    • Date
    • Thread