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

PostgreSql column "version" does not exist #256

Closed
ymind opened this issue Dec 20, 2018 · 3 comments

Comments

@ymind
Copy link

commented Dec 20, 2018

Please answer these questions before submitting your issue.

  • Why do you submit this issue?
  • Question or discussion
  • Bug
  • Requirement
  • Feature or performance improvement

Bug

  • Which version of CAP, OS and .NET Core?
    2.4.0+

  • Which company or project?

  • What happen?
    If possible, provide a way for reproducing the error. e.g. demo application, component version.

Npgsql.PostgresException (0x80004005): 42703: column "version" does not exist
   at Npgsql.NpgsqlConnector.<>c__DisplayClass161_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext() in C:\projects\npgsql\src\Npgsql\NpgsqlConnector.cs:line 1012
--- End of stack trace from previous location where exception was thrown ---
   at Npgsql.NpgsqlConnector.<>c__DisplayClass161_0.<<ReadMessage>g__ReadMessageLong|0>d.MoveNext() in C:\projects\npgsql\src\Npgsql\NpgsqlConnector.cs:line 1032
--- End of stack trace from previous location where exception was thrown ---
   at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming) in C:\projects\npgsql\src\Npgsql\NpgsqlDataReader.cs:line 526
   at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior, Boolean async, CancellationToken cancellationToken) in C:\projects\npgsql\src\Npgsql\NpgsqlCommand.cs:line 1215
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at Npgsql.NpgsqlCommand.ExecuteNonQuery(Boolean async, CancellationToken cancellationToken) in C:\projects\npgsql\src\Npgsql\NpgsqlCommand.cs:line 1042
   at Dapper.SqlMapper.ExecuteImplAsync(IDbConnection cnn, CommandDefinition command, Object param) in C:\projects\dapper\Dapper\SqlMapper.Async.cs:line 678
   at DotNetCore.CAP.PostgreSql.PostgreSqlPublisher.ExecuteAsync(CapPublishedMessage message, ICapTransaction transaction, CancellationToken cancel) in C:\projects\cap\src\DotNetCore.CAP.PostgreSql\ICapPublisher.PostgreSql.cs:line 50
   at DotNetCore.CAP.Abstractions.CapPublisherBase.PublishAsyncInternal(CapPublishedMessage message) in C:\projects\cap\src\DotNetCore.CAP\Abstractions\CapPublisherBase.cs:line 83
   at DotNetCore.CAP.Abstractions.CapPublisherBase.PublishAsync[T](String name, T contentObj, String callbackName, CancellationToken cancellationToken) in C:\projects\cap\src\DotNetCore.CAP\Abstractions\CapPublisherBase.cs:line 64
@yang-xiaodong

This comment has been minimized.

Copy link
Member

commented Dec 20, 2018

@ymind

This comment has been minimized.

Copy link
Author

commented Dec 20, 2018

the error is in ICapPublisher.PostgreSql.cs.

private string PrepareSql()
{
	return
		$"INSERT INTO ...,\"Version\",...)VALUES(@Id,'{_options.Version}',...);";
}
yang-xiaodong added a commit that referenced this issue Dec 21, 2018
@yang-xiaodong

This comment has been minimized.

Copy link
Member

commented Dec 21, 2018

Fixed in version 2.4.2-preview-62147279, Thanks for your report!

@yang-xiaodong yang-xiaodong changed the title Npgsql.PostgresException (0x80004005): 42703: column "version" does not exist PostgreSql column "version" does not exist Dec 24, 2018

yang-xiaodong added a commit that referenced this issue Jan 8, 2019
release 2.4.2 (#272)
* update version to 2.4.0

* Add version options to config file.

* update resource

* add  message version support  for dashboard

* add  message version support  for dashboard

* Support using version to isolate messages. #220

* update mongo unit tests

* update unit tests

* update unit tests

* Set default versions for consumer groups

* solve the problem of issue#181 (#237)

* Issue#235 (#238)

* solve the problem of issue#181

* solve the problem of issue#235

* refactor

* Fix the message persistence bug. #240

* using new CamelCaseNamingStrategy

* update packages to .net core 2.2

* update test framework to netcoreapp2.2

* Update .travis.yml

* update TargetFramework

* Exclude build samples project

* update version to 2.4.1

* add samples project to sln for build

* update version to 2.4.2

* Fixed PostgreSql version isolation feature bug. (#256)

* Fixed spelling errors

* modify cap publish Message to rabbitmq slow (#261)

* Startup the CAP with the BackgroundService.  #265

* update samples

* Fixed SQL query bug. #266

* update travis ci config

* update travis ci config

* adjust dashboard table column width

* adjust the consumer execution time to milliseconds
yang-xiaodong added a commit that referenced this issue Feb 10, 2019
add docs to master (#284)
* update version to 2.4.0

* Add version options to config file.

* update resource

* add  message version support  for dashboard

* add  message version support  for dashboard

* Support using version to isolate messages. #220

* update mongo unit tests

* update unit tests

* update unit tests

* Set default versions for consumer groups

* solve the problem of issue#181 (#237)

* Issue#235 (#238)

* solve the problem of issue#181

* solve the problem of issue#235

* refactor

* Fix the message persistence bug. #240

* using new CamelCaseNamingStrategy

* update packages to .net core 2.2

* update test framework to netcoreapp2.2

* Update .travis.yml

* update TargetFramework

* Exclude build samples project

* update version to 2.4.1

* add samples project to sln for build

* update version to 2.4.2

* Fixed PostgreSql version isolation feature bug. (#256)

* Fixed spelling errors

* modify cap publish Message to rabbitmq slow (#261)

* Startup the CAP with the BackgroundService.  #265

* update samples

* Fixed SQL query bug. #266

* update travis ci config

* update travis ci config

* adjust dashboard table column width

* adjust the consumer execution time to milliseconds

* update ignore

* add mkdocs.yml

* update version to 2.4.3

* add about.md docs

* add index.md docs

* add docs

* add docs

* add docs

* add docs

* add docs

* add docs

* add docs

* add docs

* add docs

* add docs

* add docs

* Fix resource files

* add docs

* add docs

* add docs

* Create readme.md

* add markdown extensions supports

* update about.md

* add CNAME fiel

* add img

* update docs

* Update README.zh-cn.md
yang-xiaodong added a commit that referenced this issue Feb 10, 2019
WIP (#285)
* update version to 2.4.0

* Add version options to config file.

* update resource

* add  message version support  for dashboard

* add  message version support  for dashboard

* Support using version to isolate messages. #220

* update mongo unit tests

* update unit tests

* update unit tests

* Set default versions for consumer groups

* solve the problem of issue#181 (#237)

* Issue#235 (#238)

* solve the problem of issue#181

* solve the problem of issue#235

* refactor

* Fix the message persistence bug. #240

* using new CamelCaseNamingStrategy

* update packages to .net core 2.2

* update test framework to netcoreapp2.2

* Update .travis.yml

* update TargetFramework

* Exclude build samples project

* update version to 2.4.1

* add samples project to sln for build

* update version to 2.4.2

* Fixed PostgreSql version isolation feature bug. (#256)

* Fixed spelling errors

* modify cap publish Message to rabbitmq slow (#261)

* Startup the CAP with the BackgroundService.  #265

* update samples

* Fixed SQL query bug. #266

* update travis ci config

* update travis ci config

* adjust dashboard table column width

* adjust the consumer execution time to milliseconds

* update ignore

* add mkdocs.yml

* update version to 2.4.3

* add about.md docs

* add index.md docs

* add docs

* add docs

* add docs

* add docs

* add docs

* add docs

* add docs

* add docs

* add docs

* add docs

* add docs

* Fix resource files

* add docs

* add docs

* add docs

* Create readme.md

* add markdown extensions supports

* update about.md

* add CNAME fiel

* add img

* update docs

* Update README.zh-cn.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.