Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Implement a testkit #38

Open
26 of 46 tasks
povder opened this issue Apr 2, 2017 · 0 comments
Open
26 of 46 tasks

Implement a testkit #38

povder opened this issue Apr 2, 2017 · 0 comments

Comments

@povder
Copy link
Member

povder commented Apr 2, 2017

Common for all statements

Errors

  • non-existent table
  • non-existent column
  • missing param value
  • superfluous param
  • syntactically incorrect
  • timeout
  • positional params ^
  • can't mix positional with named params
  • TODO don't forget to test all the cases above for executing batch

Selects - everything inside a tx and without an explicit tx

Streaming

  • Select empty table
  • Read fully at once
  • Read fully by chunks
  • Read some & cancel
  • Cancel right away
  • warnings
  • rows affected count
  • metadata

Result set

  • Select empty table
  • Select non-empty table
  • warnings
  • rows affected count
  • metadata

For first row

  • Empty table
  • Single row
  • Many rows

For value

  • Empty table
  • Single row
  • Many rows
  • Incorrect type
  • null value

For value opt

  • Empty table
  • Single row
  • Many rows
  • Incorrect type
  • null value

Streaming arguments

  • TODO
  • Don't forget about arg conversion errors and execution errors in the middle of streaming
  • Test what happens when publisher fails: connection should roll back

Row

  • opt/non opt

Data types

outbound

  • ...

inbound

  • ...

Param tests

Do select with different parameters and see if results show that parameters got applied

  • no parameters
  • one parameter
  • many parameters
  • the same parameter multiple times
  • parameter at the end of sql

TX tests

...

Cross tests with JDBC

...

@povder povder changed the title Implement TCK tests Implement a testkit Apr 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant