Skip to content
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

Open
wants to merge 3 commits into
base: devel
Choose a base branch
from

Conversation

rastocny
Copy link

@rastocny rastocny commented Nov 11, 2022

FIXES

  • PostgreSQL does not support NULL value for generated ID
  • ActiveRecord<IDType>::lastInsertID uses pg_get_serial_sequence for obtaining last generated ID in PostgreSQL
  • ActiveRecord<IDType>::lastInsertID uses correct connector names for PostgeSQL and MySQL

ADDED

  • support for dll exports in ARC
  • support for precompiled headers

MODIFICATIONS

  • generated includes use correct reference format ("externalInclude.h"-><externalInclude.h>)

Copy link
Member

@aleks-f aleks-f left a 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 <";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rastocny why this?

Copy link
Author

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.

The generator generates source code files that are externally depended to PoCo libraries.

Copy link
Member

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

@matejk matejk deleted the branch pocoproject:devel April 15, 2024 11:20
@matejk matejk closed this Apr 15, 2024
@matejk matejk reopened this Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants