BUG: specifying multiple columns as primary keys broken in io.sql.get_schema (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

pandas-dev / pandas Public

Additional navigation options

New issue

New issue

Closed

Closed

BUG: specifying multiple columns as primary keys broken in io.sql.get_schema

#10385

Labels

BugIO SQLto_sql, read_sql, read_sql_query

Milestone

0.17.0

@jorisvandenbossche

Description

@jorisvandenbossche

jorisvandenbossche

opened

on Jun 18, 2015

See http://stackoverflow.com/questions/30911299/get-schema-multiple-primary-keys

I think this still works for the fallback sqlite version, but not for the new sqlalchemy implementation. in PrimaryKeyConstraint, the columns should be feeded as separate positional arguments instead of a list (https://github.com/pydata/pandas/blob/master/pandas/io/sql.py#L837). So just needs an unacking *.

Metadata

Metadata

Assignees

No one assigned

Labels

BugIO SQLto_sql, read_sql, read_sql_query

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions