gerritcodereview / gwtorm Goto Github PK
View Code? Open in Web Editor NEWTiny ORM - (mirror of http://gerrit.googlesource.com/gwtorm)
License: Apache License 2.0
Tiny ORM - (mirror of http://gerrit.googlesource.com/gwtorm)
License: Apache License 2.0
When two separate gerrit applications are configured with same postgres database but two different schemas, Gerrit initializes first schema with required tables, however the second one fails with below error (1).
After looking at the sourcecode its pretty evident that connected schema is not considered when getting the list of tables & gerrit's assuming that the tables already exists and fails when trying to access them. But these tables are existing in a different schema.
If we can pass the schema name to the getTables method, the search for the tables would be restricted to only to the connected schema. This would enable the usecase of multiple gerrit applications connecting to same postgres database with different schema's. (This is common in multi-tenant applications)
(1)
gerrit_bootstrap_error.pdf
Exception in thread "main" com.google.gwtorm.server.OrmException: insert failure on schema_version
...
Caused by: java.sql.BatchUpdateException: Batch entry 0 INSERT INTO schema_version(version_nbr,singleton)VALUES(129,'X') was aborted: ERROR: relation "schema_version" does not exist
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.