jmrodri wrote:
> Instead of
>
> + List list = (List) listErrata(sessionKey, channelLabel, "", "");
> + //
> + for (Map item : list) {
> + item.put("date", item.get("issue_date"));
> + }
> + return list;
>
> why not change the query to return date as the column name instead of
> issue_date OR
> change it to return both issue_date and date together. That avoids having to
> loop through the list simply to change the keys.Because 'date' is a reserved word evidently. It just wouldn't work. > > Also, remove the empty // line. > > jesus > > > > > > Sent to you by jmrodri via Google Reader: > > > > > > 489792- fixing incorrect api return types > > <http://git.fedoraproject.org/git/?p=spacewalk.git;a=commitdiff;h=0dfd9aec01df9467e8c4a659efeb86f126bbd037> > > via Fedora Hosted Git Repositories - spacewalk.git/rss log > <http://git.fedoraproject.org/git/?p=spacewalk.git;a=summary> by Justin > Sherrill <[email protected]> on 3/12/09 > > 489792- fixing incorrect api return types > > * [D > > <http://git.fedoraproject.org/git/?p=spacewalk.git;a=blobdiff;f=java/code/src/com/redhat/rhn/common/db/datasource/xml/Errata_queries.xml;fp=java/code/src/com/redhat/rhn/common/db/datasource/xml/Errata_queries.xml;h=1fe3b440bbd61a408ad5fe10e1cb6bf4a93fc78a;hp=be24d9d3e07c13e51805d98f83fc690e607f7e9d;hb=0dfd9aec01df9467e8c4a659efeb86f126bbd037;hpb=977fe3d4221adf734cd12e5478fa529d2c0b044a>H > > <http://git.fedoraproject.org/git/?p=spacewalk.git;a=history;f=java/code/src/com/redhat/rhn/common/db/datasource/xml/Errata_queries.xml;h=0dfd9aec01df9467e8c4a659efeb86f126bbd037>] > java/code/src/com/redhat/rhn/common/db/datasource/xml/Errata_queries.xml > * [D > > <http://git.fedoraproject.org/git/?p=spacewalk.git;a=blobdiff;f=java/code/src/com/redhat/rhn/frontend/xmlrpc/channel/software/ChannelSoftwareHandler.java;fp=java/code/src/com/redhat/rhn/frontend/xmlrpc/channel/software/ChannelSoftwareHandler.java;h=a57ac22e8abccf41a3bb2cf85a36b9f23438e5bf;hp=576c28d1e4fd5aa1701dcc0cf005f1fa857b9ae7;hb=0dfd9aec01df9467e8c4a659efeb86f126bbd037;hpb=977fe3d4221adf734cd12e5478fa529d2c0b044a>H > > <http://git.fedoraproject.org/git/?p=spacewalk.git;a=history;f=java/code/src/com/redhat/rhn/frontend/xmlrpc/channel/software/ChannelSoftwareHandler.java;h=0dfd9aec01df9467e8c4a659efeb86f126bbd037>] > > java/code/src/com/redhat/rhn/frontend/xmlrpc/channel/software/ChannelSoftwareHandler.java > * [D > > <http://git.fedoraproject.org/git/?p=spacewalk.git;a=blobdiff;f=java/code/src/com/redhat/rhn/frontend/xmlrpc/channel/software/test/ChannelSoftwareHandlerTest.java;fp=java/code/src/com/redhat/rhn/frontend/xmlrpc/channel/software/test/ChannelSoftwareHandlerTest.java;h=b08e648029817f44b53dfee0245205386b0057df;hp=da4bb9bd1c5de37506342e53aa2b62de9974ced8;hb=0dfd9aec01df9467e8c4a659efeb86f126bbd037;hpb=977fe3d4221adf734cd12e5478fa529d2c0b044a>H > > <http://git.fedoraproject.org/git/?p=spacewalk.git;a=history;f=java/code/src/com/redhat/rhn/frontend/xmlrpc/channel/software/test/ChannelSoftwareHandlerTest.java;h=0dfd9aec01df9467e8c4a659efeb86f126bbd037>] > > java/code/src/com/redhat/rhn/frontend/xmlrpc/channel/software/test/ChannelSoftwareHandlerTest.java > > > > > > > Things you can do from here: > > * Subscribe to Fedora Hosted Git Repositories - spacewalk.git/rss > log > > <http://www.google.com/reader/view/feed%2Fhttp%3A%2F%2Fgit.fedoraproject.org%2Fgit%2F%3Fp%3Dspacewalk.git%3Ba%3Drss?source=email> > using *Google Reader* > * Get started using Google Reader > <http://www.google.com/reader/?source=email> to easily keep up > with *all your favorite sites* > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Spacewalk-devel mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/spacewalk-devel -- Justin Sherrill, RHCA 1801 Varisty Drive. Software Engineer Raleigh, NC 27603 Red Hat, Inc. _______________________________________________ Spacewalk-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-devel
