zkfan / tungsten-replicator

Automatically exported from code.google.com/p/tungsten-replicator
0 stars 0 forks source link

Report null values distinctly in `./thl list` output #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. `./thl list` on even having null values in the columns.

What is the expected output?

 - ROW# = 0
  - COL(1: ) = 1
  - COL(2: ) = NULL
  - COL(3: ) = NULL
  - COL(4: ) = 2011-06-16 20:16:20.0
  - COL(5: ) = NULL
  - COL(6: ) = NULL
  - COL(7: ) = 4
  - COL(8: ) = NONE
  - KEY(1: ) = 1

What do you see instead?

 - ROW# = 0
  - COL(1: ) = 1
  - COL(2: ) =
  - COL(3: ) =
  - COL(4: ) = 2011-06-16 20:16:20.0
  - COL(5: ) =
  - COL(6: ) =
  - COL(7: ) = 4
  - COL(8: ) = NONE
  - KEY(1: ) = 1

What is the possible cause?

./thl utility doesn't render NULL values.

What is the proposed solution?

Print "NULL" instead of an empty string.

Original issue reported on code.google.com by linas.vi...@gmail.com on 16 Jun 2011 at 10:16

GoogleCodeExporter commented 9 years ago

Original comment by linas.vi...@gmail.com on 16 Jun 2011 at 10:31