orientechnologies / orientdb

OrientDB is the most versatile DBMS supporting Graph, Document, Reactive, Full-Text and Geospatial models in one Multi-Model product. OrientDB can run distributed (Multi-Master), supports SQL, ACID Transactions, Full-Text indexing and Reactive Queries.
https://orientdb.dev
Apache License 2.0
4.74k stars 871 forks source link

toJSON() method seems broken in 3.0.1 #8304

Closed kahlkevin closed 6 years ago

kahlkevin commented 6 years ago

OrientDB Version: 3.0.1 Community Edition / May 18th, 2018

Java Version: 8 / jdk1.8.0_161

OS: Windows 10 / 64-bit

Expected behavior

Running SELECT @this.toJSON('prettyPrint') FROM Hotels WHERE Id = 1 against demodb should return a valid JSON document.

Actual behavior

null result is returned.

Steps to reproduce

  1. Attach to demodb database using Studio or Console.
  2. Execute SQL query detailed above.
  3. Note empty results.
  4. Consult the 'Raw' tab in Studio and note null value in result object.
luigidellaquila commented 6 years ago

Hi @kahlkevin

Thank you for reporting, I'm checking it now

Thanks

Luigi

luigidellaquila commented 6 years ago

Hi @kahlkevin

I just pushed a fix, it will be released with 3.0.2

The snapshot will be available on Sonatype servers in a few minutes

Thanks

Luigi