@@ -323,31 +323,19 @@ public PreparedStatement prepareStatement(String sql, String[] columnNames) thro
323323 @ Override
324324 public Clob createClob () throws SQLException {
325325 checkOpen ();
326- try {
327- return new com .clickhouse .jdbc .types .Clob ();
328- } catch (Exception e ) {
329- throw new SQLException ("Failed to create Clob" , e );
330- }
326+ throw new SQLFeatureNotSupportedException ("Clob not supported" );
331327 }
332328
333329 @ Override
334330 public Blob createBlob () throws SQLException {
335331 checkOpen ();
336- try {
337- return new com .clickhouse .jdbc .types .Blob ();
338- } catch (Exception e ) {
339- throw new SQLException ("Failed to create Blob" , e );
340- }
332+ throw new SQLFeatureNotSupportedException ("Blob not supported" );
341333 }
342334
343335 @ Override
344336 public NClob createNClob () throws SQLException {
345337 checkOpen ();
346- try {
347- return new com .clickhouse .jdbc .types .Clob .NClob ();
348- } catch (Exception e ) {
349- throw new SQLException ("Failed to create NClob" , e );
350- }
338+ throw new SQLFeatureNotSupportedException ("NClob not supported" );
351339 }
352340
353341 @ Override
@@ -369,40 +357,44 @@ public boolean isValid(int timeout) throws SQLException {
369357
370358 @ Override
371359 public void setClientInfo (String name , String value ) throws SQLClientInfoException {
372- try {
373- checkOpen ();
374- this .defaultQuerySettings .setOption (name , value );
375- } catch (Exception e ) {
376- throw new SQLClientInfoException ("Failed to set client info." , Collections .singletonMap (name , ClientInfoStatus .REASON_UNKNOWN ), e );
377- }
360+ // try {
361+ // checkOpen();
362+ // this.defaultQuerySettings.setOption(name, value);
363+ // } catch (Exception e) {
364+ // throw new SQLClientInfoException("Failed to set client info.", Collections.singletonMap(name, ClientInfoStatus.REASON_UNKNOWN), e);
365+ // }
366+ throw new SQLClientInfoException ("Failed to set client info." , new HashMap <>(), new SQLFeatureNotSupportedException ("setClientInfo not supported" ));
378367 }
379368
380369 @ Override
381370 public void setClientInfo (Properties properties ) throws SQLClientInfoException {
382- try {
383- checkOpen ();
384- } catch (SQLException e ) {
385- throw new SQLClientInfoException ("Failed to set client info." , new HashMap <>(), e );
386- }
387-
388- for (Map .Entry <Object , Object > entry : properties .entrySet ()) {
389- setClientInfo (entry .getKey ().toString (), entry .getValue ().toString ());
390- }
371+ // try {
372+ // checkOpen();
373+ // } catch (SQLException e) {
374+ // throw new SQLClientInfoException("Failed to set client info.", new HashMap<>(), e);
375+ // }
376+ //
377+ // for (Map.Entry<Object, Object> entry : properties.entrySet()) {
378+ // setClientInfo(entry.getKey().toString(), entry.getValue().toString());
379+ // }
380+ throw new SQLClientInfoException ("Failed to set client info." , new HashMap <>(), new SQLFeatureNotSupportedException ("setClientInfo not supported" ));
391381 }
392382
393383 @ Override
394384 public String getClientInfo (String name ) throws SQLException {
395385 checkOpen ();
396- Object value = this .defaultQuerySettings .getAllSettings ().get (name );
397- return value == null ? null : String .valueOf (value );
386+ // Object value = this.defaultQuerySettings.getAllSettings().get(name);
387+ // return value == null ? null : String.valueOf(value);
388+ throw new SQLFeatureNotSupportedException ("getClientInfo not supported" );
398389 }
399390
400391 @ Override
401392 public Properties getClientInfo () throws SQLException {
402393 checkOpen ();
403- Properties clientInfo = new Properties ();
404- clientInfo .putAll (this .defaultQuerySettings .getAllSettings ());
405- return clientInfo ;
394+ // Properties clientInfo = new Properties();
395+ // clientInfo.putAll(this.defaultQuerySettings.getAllSettings());
396+ // return clientInfo;
397+ throw new SQLFeatureNotSupportedException ("getClientInfo not supported" );
406398 }
407399
408400 @ Override
0 commit comments