1

JythonでzxJDBCを使用し、postgresのデータベースに接続しています。
DELETEコマンドはエラー無くDB上のデータを消すことができたのですが、COPYコマンドを実行すると以下のエラーが出てしまいます・・・よろしくお願いいたします。

[error] zxJDBC.Error ( Cannot create PyString with non-byte value )
import sys
load("C:postgresql-42.1.3.jre6.jar")
from com.ziclix.python.sql import zxJDBC
url = "jdbc:postgresql://localhost:5432/postgres"
dbuser = "postgres"
dbpassword = "postgres"
driver =  "org.postgresql.Driver"
dbconn=zxJDBC.connect(url, dbuser, dbpassword, driver)
dbcur = dbconn.cursor()

#dbcur.execute("delete from test") 
#dbcur.execute("copy test from 'C:test.csv'")
dbconn.commit()
dbcur.close()
dbconn.close()
0

0

この質問に回答するには、ログインする必要があります。

のタグが付いた他の質問を参照する。