Closed enCoreV1 closed 2 years ago
@enCoreV1 post here the two JSONs (from MySQL and from Postgres) since they're not the same.
@enCoreV1 post here the two JSONs (from MySQL and from Postgres) since they're not the same.
Only one idea - MySQL id in JSON as string with quotation marks and PostgreSQL JSON as integer. So, how return right JSON format from PGSQL? Or i make another mistake? Thx in advance
I am not sure there is something I can do - please provide the data in the format that is expected, jstree does not talk to a database directly. From looking at the error it seems like the node is never created - the ID is still the autogenerated j1_1. Usually the biggest difference when migrating to postgresql is types and the way the underlying library interprets them - have a look at that as well. I can assure you I have tens of projects using jstree and postgreSQL.
Hello, i tried to make tree from database and php scripts. This is my code whitch works well on MySQL database without any errors
And it's ok. Add new node and rename it. But if change database to PostgreSQL i'll take error Code for PostgreSQL
$result will be the same: {id: "51"} (51 for example)
but JS give me error. jsTree last version.
So new node added but i need to refresh my page for rename it. Thx for helping