You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Esteban Donato <es...@gmail.com> on 2012/01/12 21:32:51 UTC
createStatement not supported
Hi community!
I'm new in this list. I have a quick question: I was checking
HiveConnection and noted that createStatement(int resultSetType, int
resultSetConcurrency) is not supported. Any reason to not implement
it? I checked prepareStatement(String sql, int resultSetType, int
resultSetConcurrency) and it is implemented the same way it is
prepareStatement(String sql), that is, discarding resultSetType and
resultSetConcurrency values. Can we have the same for
createStatement? It could also be validated that type is
TYPE_FORWARD_ONLY and concurrency level is CONCUR_READ_ONLY to proceed
since these are the default values as per JDBC spec.
I'm particular interested in this change since I'm using hive-jdbc
inside a framework that uses createStatement(int resultSetType, int
resultSetConcurrency). I can submit the change if you agree.
Regards,
Esteban
Re: createStatement not supported
Posted by Esteban Donato <es...@gmail.com>.
any advise on this? Is this the right distribution list to discuss this topic?
On Thu, Jan 12, 2012 at 5:32 PM, Esteban Donato
<es...@gmail.com> wrote:
> Hi community!
>
> I'm new in this list. I have a quick question: I was checking
> HiveConnection and noted that createStatement(int resultSetType, int
> resultSetConcurrency) is not supported. Any reason to not implement
> it? I checked prepareStatement(String sql, int resultSetType, int
> resultSetConcurrency) and it is implemented the same way it is
> prepareStatement(String sql), that is, discarding resultSetType and
> resultSetConcurrency values. Can we have the same for
> createStatement? It could also be validated that type is
> TYPE_FORWARD_ONLY and concurrency level is CONCUR_READ_ONLY to proceed
> since these are the default values as per JDBC spec.
>
> I'm particular interested in this change since I'm using hive-jdbc
> inside a framework that uses createStatement(int resultSetType, int
> resultSetConcurrency). I can submit the change if you agree.
>
> Regards,
> Esteban