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

pulling sourceforge changes and dll/so copy issue #4

Closed
wants to merge 11 commits into from

Conversation

sidorovis
Copy link

  1. auto copy mysql dll (so) to binary folder (mysql tests could be runned without adding dll (so) to ;
  2. commenting two test on mysql that have problems on MySQL 5.5.25a
  3. change type=InnoDB to ENGINE=InnoDB;
  4. adding SOCI_MYSQL_TEST_CONNSTR to auto insert CMake parameter into test;

vadz and others added 11 commits July 10, 2012 22:34
Add functions for working with sequences/auto-increment fields in a portable
and backend-independent way.
This constructor could never compile as it lacked the const_cast<> needed to
assign its const parameter to non-const member reference. It also didn't set
readOnly_ member to true correctly.

Signed-off-by: Vadim Zeitlin <vz-soci@zeitlins.org>
There is no need for a separate type for "unsigned long" as we don't have
special types neither for "unsigned int" nor for "long" and this type was not
handled correctly in the ODBC backend that mapped "unsigned int" to
SQL_BIGINT, even though the former is almost always 32 bits and the latter is
always 64 bits.

Simply remove these types to avoid the problem and simplify the code.

Signed-off-by: Vadim Zeitlin <vz-soci@zeitlins.org>
Map "unsigned short/int/long" to "short/int/long" instead of "unsigned long
long" they were all mapped to before. Unsigned variants can be compared to the
signed ones and back without loss but "unsigned long long" has a different
size and so can't always be converted from.

Signed-off-by: Vadim Zeitlin <vz-soci@zeitlins.org>
Calling convert_from_base() for the input ("use") parameters was unnecessary
and potentially confusing to the client code. Simply don't do this, just as we
don't call convert_to_base() for the output ("into") parameters.

Signed-off-by: Vadim Zeitlin <vz-soci@zeitlins.org>
Oracle ODBC driver silently (!) doesn't support SQL_BIGINT ODBC type.

Add a workaround to allow using 64 bit integers with it by passing them
to/from the database as strings.

Signed-off-by: Vadim Zeitlin <vz-soci@zeitlins.org>
…rate connection string from CMake parameter, commented not working tests on 5.5.25a MySQL, change type=InnoDB to ENGINE=InnoDB
@mloskot
Copy link
Contributor

mloskot commented Oct 29, 2012

@vadz The point 4) has been addressed in #9

I'm going to take a look at other changes soon too.
It's just that large pull requests are harder to process, need extra care, so it takes longer.

@mloskot
Copy link
Contributor

mloskot commented Feb 2, 2013

The idea of .bat scripts generating Visual Studio solutions is a good one, but the proposed scripts seem to be too specific to author's environments. So, I'm not going to merge these scripts. Instead, I made a new ticket for this idea to implement in more generic way, so it won't be forgotten: #41

@mloskot
Copy link
Contributor

mloskot commented Feb 3, 2013

@vadz has already added the 64-bit integer support to ODBC in SHA1: b82364e

@mloskot
Copy link
Contributor

mloskot commented Feb 3, 2013

@vadz has already removed dt_unsigned_long and x_unsigned_long type constants frin SHA1: 4f8bc05

@mloskot
Copy link
Contributor

mloskot commented Feb 3, 2013

In SHA1: 22e740a, @vadz also already merged this: Don't convert input parameters to internal type needlessly

@mloskot
Copy link
Contributor

mloskot commented Feb 3, 2013

@vadz merged the Fixed conversion_use_type<>(T const&, indicator&) constructor in SHA1: e1c04c8

@mloskot
Copy link
Contributor

mloskot commented Feb 3, 2013

@vadz integrated the sequences support in SHA1: 49278cb and SHA1: b9545e0

@mloskot
Copy link
Contributor

mloskot commented Feb 3, 2013

@vad merged "Handle unsigned integer types as their signed versions" in SHA1: 2a88405

@mloskot
Copy link
Contributor

mloskot commented Feb 3, 2013

I think this ticket has been cleared now and can be closed.

Thanks to everyone for your contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants