-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX: PostgeSQL support in ActiveRecord #3869
base: main
Are you sure you want to change the base?
FIX: PostgeSQL support in ActiveRecord #3869
Conversation
… ARC (fixed support for PostgeSQL)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't put poco includes in angle brackets
@@ -68,13 +68,13 @@ void CodeGenerator::writeHeaderComment(const std::string& fileName) const | |||
|
|||
void CodeGenerator::writeInclude(const std::string& nameSpace, const std::string& name) const | |||
{ | |||
_stream << "#include \""; | |||
_stream << "#include <"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rastocny why this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optimization of compilation process and cleanness in dependencies. <>
are used for includes from external libraries and compiler shall look for included files in external includes (in MSVC Additional includes directory). ""
are used for internal includes, that shall have relative path from current file. When "internally" included file is not found, a fallback to external includes is applied.
- https://learn.microsoft.com/en-us/cpp/preprocessor/hash-include-directive-c-cpp?view=msvc-170
- https://gcc.gnu.org/onlinedocs/cpp/Search-Path.html
The generator generates source code files that are externally depended to PoCo
libraries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll leave this to @obiltschnig to decide
FIXES
ActiveRecord<IDType>::lastInsertID
usespg_get_serial_sequence
for obtaining last generated ID in PostgreSQLActiveRecord<IDType>::lastInsertID
uses correct connector names for PostgeSQL and MySQLADDED
MODIFICATIONS
"externalInclude.h"
-><externalInclude.h>
)