Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9148115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:11:09+00:00 2026-06-17T11:11:09+00:00

My schema: class Component(): comp_id = models.CharField(‘Component ID’, primary_key=True, db_column=’comp_id’) path = models.CharField(‘Path’) def

  • 0

My schema:

class Component():
  comp_id = models.CharField('Component ID', primary_key=True, db_column='comp_id')
  path = models.CharField('Path')

  def __unicode__(self):
    return self.path

class Configuration():
  config_id = Models.AutoField('Config ID', db_column='config_id', primary_key=True)
  component = models.ForeignKey('Component', db_column='component')
  org_id = models.Integer.Field('Org ID')

  def __unicode__(self):
    return "{} + {}".format(self.org_id, self.component)

class Result():
  result_id = Models.AutoField('Result ID', db_column='result_id', primary_key=True)
  config = models.ForeignKey('Configuration', db_column='config')

In the change form for Result, I expected the config foreign key to be represented by a dropdown. But instead the page won’t render and I get DatabaseError exception with message: “Attempt to initiate a new SQL Server operation with results pending.” What I think is happening, is that the Result.config dropdown is trying to resolve the unicode representations for the Configurations, but that means going one foreign key level deeper to resolve the unicode for the related Component and the database won’t allow it. Anyone see a way around this error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:11:12+00:00Added an answer on June 17, 2026 at 11:11 am

    It turns out my installation relies on a custom DB backend for MS SQL Server and I needed to edit it’s base.py file to include the following line in the DatabaseFeatures class:

    can_use_chunked_reads = False
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I running schema update for Symfony2 gives: Warning: class_parents(): Class Tg\UserBunde\Entity\Person does not exist
I generated a Class with a XML Schema (.xsd) using the Visual Studio xsd
I used the xsd.exe tool to generate a class based on my xml schema.
This is an extract of the JPA entities schema @Entity @Table(name=customer) public class Customer
I've a model named GuestOrder: class GuestOrder < ActiveRecord::Base end # == Schema Information
I'm trying to generate a class from an xsd schema but I obtain the
I have a form model created as following: from plone.app.directives import Form class IFormSchema(form.Schema):
So I wanted to do something like this: @Component @Scope(value=request, proxyMode=ScopedProxyMode.INTERFACES) public class MyBean
Can any one volunteer why the class below fails? ... src/model/user.rb:18: undefined method `set_schema'
Now I research OOP-part of Scheme. I can define class in Scheme like this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.