Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: Which databases are the most used with Java Date: Sun, 13 Aug 2017 19:11:26 +0200 Organization: Decebal Computing Lines: 28 Message-ID: <87pobz9yv5.fsf@munus.decebal.nl> References: <87y3qovwjb.fsf@munus.decebal.nl> <87tw1bx2c9.fsf@munus.decebal.nl> <87a833wzcx.fsf@munus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="1615173a1409002a85fbdd25ac4b9ead"; logging-data="5225"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+nENnjPJckUKTh/GHeZ1QxhoBvtrBBH/0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:nrV6Sehb4W6l00IMYVz/uehdasg= sha1:k4AIdcpkaXByqOtutBTPbROBaVk= Xref: csiph.com comp.lang.java.programmer:37187 Robert Klemme writes: > On 13.08.2017 12:12, Cecil Westerhof wrote: >> Andreas Leitgeb writes: > >>> And if I ever need ten bricks, I'll just call it ten times... >> >> If you need 10 ResultSets, you also need 10 Statements. > > This is wrong. What is wrong about that? A Statement can only have one ResultSet. So if you have 10 (independent) ResultSets you have 10 Statements. >> Also: with the not really needed Statements you increase the risk of >> bugs. > > Not sure what you mean by that. It would not be the first time that someone used similar names for different variables and use the wrong one at a certain point. When you double your variables, you increase the risk of making a mistake. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof