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

Installing sample data fails on products table (column count mismatch). #7

Closed
lgedgar opened this issue Oct 18, 2010 · 1 comment
Closed

Comments

@lgedgar
Copy link
Contributor

lgedgar commented Oct 18, 2010

This used to work, because the script /pos/installation/install_server.py was written specifically with this purpose in mind. However now when this script runs, it fails with the error:

Traceback (most recent call last):
  File "pos/installation/install_server.py", line 40, in <module>
install_server_db(*user_input)
  File "pos/installation/install_server.py", line 28, in install_server_db
exec_scripts(connection, 'is4c_op/data/*.insert')
  File "/home/lance/src/is4c-wedgecoop/pos/installation/installers.py", line 46, in exec_scripts
exec_script(connection, script_path, absolute=True)
  File "/home/lance/src/is4c-wedgecoop/pos/installation/installers.py", line 30, in exec_script
cursor.execute(sql)
  File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py", line 166, in execute
self.errorhandler(self, exc, value)
  File "/usr/lib/pymodules/python2.6/MySQLdb/connections.py", line 35, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1136, "Column count doesn't match value count at row 1")

I've verified that the particular SQL script causing this is /pos/installation/mysql/is4c_op/data/products.insert. Apparently the number of columns in the products table (as defined by /pos/installation/mysql/is4c_op/tables/products.table) is different than the number assumed within products.insert.

@jdpurdyvi
Copy link
Member

This issue was closed.
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

No branches or pull requests

2 participants