Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copying into integer (int32) columns does not work #26

Closed
dclements opened this issue Jan 7, 2013 · 0 comments · Fixed by #46
Closed

Copying into integer (int32) columns does not work #26

dclements opened this issue Jan 7, 2013 · 0 comments · Fixed by #46
Labels

Comments

@dclements
Copy link
Contributor

test > create table test (id int32, val int32, primary key (id))
table test defined
test > copy test from stdin
reading row data until "\."

test > 1,1
test > \.
inserted 0 row(s)

On the server:

java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.Integer
    at com.readytalk.revori.imp.Compare.validate(Compare.java:76)
    at com.readytalk.revori.imp.InsertTemplateAdapter.apply(InsertTemplateAdapter.java:39)
    at com.readytalk.revori.imp.MyRevisionBuilder.apply(MyRevisionBuilder.java:1140)
    at com.readytalk.revori.server.SQLServer.copy(SQLServer.java:1558)
    at com.readytalk.revori.server.SQLServer.applyCopy(SQLServer.java:1576)
    at com.readytalk.revori.server.SQLServer.executeRequest(SQLServer.java:2625)
    at com.readytalk.revori.server.SQLServer.handleRequest(SQLServer.java:2686)
    at com.readytalk.revori.server.SQLServer.access$3(SQLServer.java:2671)
    at com.readytalk.revori.server.SQLServer$Client.run(SQLServer.java:487)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:680)

The "inserted 0 row(s)" message is covered by Issue #25.

test > create table test (id int64, val int64, primary key (id))
table test defined

test > copy test from stdin
reading row data until "\."

test > 1,1
test > \.
inserted 1 row(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant