Re: [Spacewalk-devel] PGPORT: Another porting request.

2009-02-03 Thread Gurjeet Singh
On Tue, Feb 3, 2009 at 5:40 PM, Jan Pazdziora jpazdzi...@redhat.com wrote: On Tue, Feb 03, 2009 at 04:21:29PM +0530, Gurjeet Singh wrote: _query_latest_version = rhnSQL.Statement( SELECT nvl(version, 0) version, version orig_version, cert, TO_CHAR(issued, '-MM-DD

Re: [Spacewalk-devel] PGPORT: Another porting request.

2009-02-03 Thread Gurjeet Singh
On Tue, Feb 3, 2009 at 7:00 AM, Devan Goodwin dgood...@redhat.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey guys, blocked on another spot in the installer and wanted to queue these items up for porting: Out of backend/satellite_tools/satCerts.py: _query_latest_version =

Re: [Spacewalk-devel] PGPORT: Another porting request.

2009-02-03 Thread Gurjeet Singh
On Tue, Feb 3, 2009 at 6:34 PM, Jan Pazdziora jpazdzi...@redhat.com wrote: On Tue, Feb 03, 2009 at 06:26:19PM +0530, Gurjeet Singh wrote: How about order by decode(version, null, 1, 0), version Yup... that'll work, but will mess up the ordering if more than one of

[Spacewalk-devel] PGPORT: iteration #2 review.

2009-02-03 Thread Jeff Ortel
All, We're in the process of formalizing the analysis/planning for the postgres porting project. The project plan specifies this work to be done in several iterations. The 1st iteration generally consists of creating the postges schema and porting those stored procedures not associated

[Spacewalk-devel] Re: PGPORT: Porting tables; contributions needed

2009-02-03 Thread Gurjeet Singh
I am starting to work on the following set of tables: schema/spacewalk/rhnsat/tables/rhnAction*.sql Best regards, On Tue, Feb 3, 2009 at 12:47 PM, Gurjeet Singh gurjeet.si...@enterprisedb.com wrote: Hi All, I have migrated the following DB objects to work okay with Postgres:

Re: [Spacewalk-devel] Debugging Unit Tests

2009-02-03 Thread Partha Aji
This sounds like a great idea..I usually use eclipse and unit tests running there and use the eclipse debugger to test stuff.. But doing it in ant will be very useful in cases where running unit tests in a specfic order causes the test to fail. Our continuous build system runs the tests via

[Spacewalk-devel] Debugging Unit Tests

2009-02-03 Thread Jason Dobies
I'm not sure how others do it (or if this is commonly known), but I was looking to attach a debugger to ant as it runs my test cases. Putting the following lines into the java/buildconf/build-utils.xml file in the junit task (roughly line 77) sets the tests to suspend until the debugger is

Re: [Spacewalk-devel] PGPORT: Another porting request.

2009-02-03 Thread Devan Goodwin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 3 Feb 2009 20:24:06 +0100 Jan Pazdziora jpazdzi...@redhat.com wrote: On Tue, Feb 03, 2009 at 02:48:15PM -0400, Devan Goodwin wrote: FROM rhnSatelliteCert WHERE label = :label - - ORDER BY version DESC NULLS LAST +

Re: [Spacewalk-devel] Debugging Unit Tests

2009-02-03 Thread Jesus M. Rodriguez
On Tue, Feb 3, 2009 at 7:01 PM, Jason Dobies jason.dob...@redhat.com wrote: I checked in the lines directly into the file, commented out by default: http://tinyurl.com/aeem8w I hope you didn't mind, but I made it so that you can now pass in -Dtestdebug=true and it will invoke the debugger.

Re: [Spacewalk-devel] Debugging Unit Tests

2009-02-03 Thread Partha Aji
Ideally test-debug should be the target name instead of test. way more convenient IMHO :) Jesus Rodriguez wrote: On Tue, Feb 03, 2009 at 05:35:58PM -0500, Jason Dobies wrote: I'm not sure how others do it (or if this is commonly known), but I was looking to attach a debugger to ant as it