|
From: Keith D. <kd...@cs...> - 2004-02-25 14:34:36
|
Thomas, I've checked in those changes to the execute(String) and update(String) methods of JdbcTemplate. I also updated the JdbcTemplateTestSuite, since the change to 'update' caused its mock-behaivior to change. Keith ----- Original Message -----=20 From: <tri...@tr...> To: <spr...@li...> Sent: Wednesday, February 25, 2004 8:11 AM Subject: Re: [Springframework-developer] JdbcTemplate.update > > I can't see any reason for using a prepared stetement rather than a statement if > there aren't any bind parameters. I'm OK with changing this to a > Statement.executeUpdate(sql). > > Thomas > > > Quoting "j=FCrgen h=F6ller [werk3AT]" <jue...@we...>: > > > Thomas, everybody, > > > > Any reason why JdbcTemplate's update(sql) method uses a > > PreparedStatement without bind parameters? To be consistent with the > > query methods that take static SQL, update(sql) should really use a > > plain Statement... > > > > BTW, Keith and me are currently refining the use of native JDBC > > extraction in JdbcTemplate: This just makes sense when application co= de > > will touch - and potentially cast - JDBC objects like PreparedStateme= nts > > or ResultSets. Thus, it isn't necessary for execute(sql) or update(sq= l). > > > > Juergen > > > > > > ------------------------------------------------------- > > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > > Build and deploy apps & Web services for Linux with > > a free DVD software kit from IBM. Click Now! > > http://ads.osdn.com/?ad_id=3D1356&alloc_id=3D3438&op=3Dclick > > _______________________________________________ > > Springframework-developer mailing list > > Spr...@li... > > https://lists.sourceforge.net/lists/listinfo/springframework-develope= r > > > > > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=3D1356&alloc_id=3D3438&op=3Dclick > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |