Commit Graph

12 Commits

Author SHA1 Message Date
7ba523ba37 Update copyright date to 2023 2023-01-15 16:13:42 +01:00
cdca1fb4a9 Prefer std::array instead of plain C arrays 2022-03-16 14:25:53 +01:00
56d5145615 Updates copyright date to 2022 in all files 2022-01-11 14:30:34 +01:00
94dae34b7a Add internal json/jsonb support to flex output
Table columns with type 'json' or 'jsonb' are now explicitly supported.
Lua booleans, strings, numbers, and tables can be written to those
columns and are automatically encoded as JSON on the fly.

This is a breaking change to the behaviour we had before where you had
to encode the JSON yourself in Lua before giving it to osm2pgsql. We
can still do this change as the flex backend is still marked
experimental and the behaviour is much cleaner this way then if we keep
backwards compatibility.
2021-05-04 09:07:22 +02:00
e940cc660e Fix empty string to real number conversion from Lua to Pg
Fixes #1416
2021-02-12 18:10:55 +01:00
d45018f88b Update copyright year to 2021 2021-01-28 09:38:17 +01:00
61bdfb4bc5 Add/update copyright notice on all C++ files
This adds a copyright notice to all C++ files and the README clarifying
the license. (There is no change of the license.) This also removes a
few names explicitly mentioned as copyright holders, instead refering to
the git log which has a full list of all osm2pgsql developers. (There is
also still the AUTHORS file which names the most important developers.)

The only exception is the sprompt.cpp file which was taken from
PostgreSQL and keeps its original license information (and, of course,
the files in contrib).
2020-12-19 11:25:07 +01:00
69f9c318a2 Cleanup flex type conversion tests 2020-07-01 15:37:07 +02:00
341c55fb3b Bugfix: Conversion of Lua strings to integers in database
If the string doesn't contain a valid number this will write NULL to
the database instead of 0.

Fixes #1107
2020-04-06 17:06:30 +02:00
a5d5057ca9 Fix Lua-to-PostgreSQL type conversion code 2020-04-04 13:14:32 +02:00
109a535885 Fix Lua to PostgreSQL type conversion tests 2020-03-31 21:19:38 +02:00
ea7e9102d0 Clear up the rules for converting Lua to PostgreSQL types
More consistent and useful rules. Also added tests.
2020-03-30 11:48:26 +02:00