草庐IT

default-constraint

全部标签

ios - 为什么我的应用显示名称为 __FIRAPP_DEFAULT 的应用不存在

我正在使用frebase开发flutterios应用程序。我想使用短信身份验证登录应用程序。当我运行该应用程序时,它正在从数据库中获取详细信息。但它显示应用程序启动时间错误。错误是-[Firebase/Core][I-COR000004]名称为__FIRAPP_DEFAULT的应用不存在。在xcode中,我启用了启用的“推送通知”和“远程通知”以删除OTP验证中的验证码。但如果我禁用“推送通知”和“远程通知”,它将显示验证码。并在验证验证码后发送短信。-[Firebase/Core][I-COR000004]名称为__FIRAPP_DEFAULT的应用程序不存在。在应用程序打开中。我在

sqlite - 击中 sqlalchemy.exc.IntegrityError : (IntegrityError) constraint failed 'INSERT INTO users

我正在使用sqlite数据库并且我在这个要点中声明了模型https://gist.github.com/mmahesh/7245561我添加了一个带有事务管理器的模型实例作为withtransaction.manager:model=Users(username='example',name='Example',email_primary='m@m.com',_password='example')DBSession.add(model)每当我执行initialize_sample_dbdevelopment.ini时,都会出现此错误sqlalchemy.exc.IntegrityEr

sqlite - 击中 sqlalchemy.exc.IntegrityError : (IntegrityError) constraint failed 'INSERT INTO users

我正在使用sqlite数据库并且我在这个要点中声明了模型https://gist.github.com/mmahesh/7245561我添加了一个带有事务管理器的模型实例作为withtransaction.manager:model=Users(username='example',name='Example',email_primary='m@m.com',_password='example')DBSession.add(model)每当我执行initialize_sample_dbdevelopment.ini时,都会出现此错误sqlalchemy.exc.IntegrityEr

python - Django 2.0 : sqlite IntegrityError: FOREIGN KEY constraint failed

我正在努力为django-pagetree添加Django2.0支持图书馆。在自动化测试期间,使用sqlite内存数据库,我遇到了一堆这样的错误:File"/home/nnyby/src/django-pagetree/pagetree/tests/test_models.py",line638,insetUp'children':[],File"/home/nnyby/src/django-pagetree/pagetree/models.py",line586,inadd_child_section_from_dict...File"/home/nnyby/src/django-p

python - Django 2.0 : sqlite IntegrityError: FOREIGN KEY constraint failed

我正在努力为django-pagetree添加Django2.0支持图书馆。在自动化测试期间,使用sqlite内存数据库,我遇到了一堆这样的错误:File"/home/nnyby/src/django-pagetree/pagetree/tests/test_models.py",line638,insetUp'children':[],File"/home/nnyby/src/django-pagetree/pagetree/models.py",line586,inadd_child_section_from_dict...File"/home/nnyby/src/django-p

安卓 SQLiteConstraintException : error code 19: constraint failed

我已经看到关于此异常的其他问题,但所有这些问题似乎都已通过指定主键的行已存在的解决方案得到解决。对我来说似乎并非如此。我尝试用双引号替换字符串中的所有单引号,但出现了同样的问题。我正在尝试将一行插入到我通过执行以下操作创建的SQLite数据库的设置表中:db.execSQL("DROPTABLEIFEXISTS"+Settings.SETTINGS_TABLE_NAME+";");db.execSQL(CREATE_MEDIA_TABLE);db.execSQL(CREATE_SETTINGS_TABLE);Cursorc=getAllSettings();//Ifthereisn't

安卓 SQLiteConstraintException : error code 19: constraint failed

我已经看到关于此异常的其他问题,但所有这些问题似乎都已通过指定主键的行已存在的解决方案得到解决。对我来说似乎并非如此。我尝试用双引号替换字符串中的所有单引号,但出现了同样的问题。我正在尝试将一行插入到我通过执行以下操作创建的SQLite数据库的设置表中:db.execSQL("DROPTABLEIFEXISTS"+Settings.SETTINGS_TABLE_NAME+";");db.execSQL(CREATE_MEDIA_TABLE);db.execSQL(CREATE_SETTINGS_TABLE);Cursorc=getAllSettings();//Ifthereisn't

android - Android Studio 中的 "There is no default constructor available in android.database.sqlite.SQLitepenhelper"

尝试使用SQLiteOpenHelper扩展类,但出现此错误:“android.database.sqlite.SQLitepenhelper中没有可用的默认构造函数”以及其他“无法解析符号类别、注意、...”classDbHelperextendsSQLiteOpenHelper{@OverridepublicvoidonCreate(SQLiteDatabasedb){db.execSQL(Category.getSql());db.execSQL(Note.getSql());db.execSQL(Attachment.getSql());db.execSQL(CheckItem

android - Android Studio 中的 "There is no default constructor available in android.database.sqlite.SQLitepenhelper"

尝试使用SQLiteOpenHelper扩展类,但出现此错误:“android.database.sqlite.SQLitepenhelper中没有可用的默认构造函数”以及其他“无法解析符号类别、注意、...”classDbHelperextendsSQLiteOpenHelper{@OverridepublicvoidonCreate(SQLiteDatabasedb){db.execSQL(Category.getSql());db.execSQL(Note.getSql());db.execSQL(Attachment.getSql());db.execSQL(CheckItem

sqlite3 "foreign key constraint failed"

我设置了两个表:CREATETABLEA(idINTEGERNOTNULLPRIMARYKEYAUTOINCREMENT,nameTEXT);CREATETABLEB(idINTEGERNOTNULLPRIMARYKEYAUTOINCREMENT,id2INTEGER,bookTEXT,FOREIGNKEY(id2)REFERENCESA(id));在我向A中插入数据后,它看起来像这样:1John2Amy3Peter在我向B中插入数据后,它看起来像这样:11LordoftheRings21Catch2232SumofAllFears43HuntforRedOctober然后我执行下面的