Diff of the two buildlogs: -- --- b1/build.log 2024-10-06 09:02:40.508339460 +0000 +++ b2/build.log 2024-10-06 09:04:14.928320769 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Nov 8 03:24:48 -12 2025 -I: pbuilder-time-stamp: 1762615488 +I: Current time: Sun Oct 6 23:02:43 +14 2024 +I: pbuilder-time-stamp: 1728205363 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -26,53 +26,85 @@ dpkg-source: info: unpacking golang-gopkg-gorp.v1_1.7.2-2.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/19529/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/18343/tmp/hooks/D01_modify_environment starting +debug: Running on infom07-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Oct 6 09:02 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/18343/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/18343/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=6 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="32" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.2.32(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=5 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='426269dae96c455188084e8cdc3b28fb' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='19529' - PS1='# ' - PS2='> ' + INVOCATION_ID=081ae532ed0e4a99b6140fca025075a9 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=18343 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.Xah5D26m/pbuilderrc_gEbI --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Xah5D26m/b1 --logfile b1/build.log golang-gopkg-gorp.v1_1.7.2-2.dsc' - SUDO_GID='111' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.Xah5D26m/pbuilderrc_vlp9 --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Xah5D26m/b2 --logfile b2/build.log golang-gopkg-gorp.v1_1.7.2-2.dsc' + SUDO_GID=111 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' I: uname -a - Linux infom08-i386 6.10.6+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.10.6-1~bpo12+1 (2024-08-26) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 4 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/19529/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 4 21:30 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/18343/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -179,7 +211,7 @@ Get: 57 http://deb.debian.org/debian trixie/main i386 libsqlite3-dev i386 3.46.0-1 [1181 kB] Get: 58 http://deb.debian.org/debian trixie/main i386 golang-github-mattn-go-sqlite3-dev i386 1.14.19~ds1-1 [83.4 kB] Get: 59 http://deb.debian.org/debian trixie/main i386 golang-github-ziutek-mymysql-dev all 1.5.4+git20170206.23.0582bcf-2 [46.8 kB] -Fetched 73.3 MB in 3s (27.5 MB/s) +Fetched 73.3 MB in 3s (21.8 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19774 files and directories currently installed.) @@ -430,7 +462,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/golang-gopkg-gorp.v1-1.7.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../golang-gopkg-gorp.v1_1.7.2-2_source.changes +I: user script /srv/workspace/pbuilder/18343/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/18343/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/golang-gopkg-gorp.v1-1.7.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../golang-gopkg-gorp.v1_1.7.2-2_source.changes dpkg-buildpackage: info: source package golang-gopkg-gorp.v1 dpkg-buildpackage: info: source version 1.7.2-2 dpkg-buildpackage: info: source distribution unstable @@ -448,1351 +484,1351 @@ dh_autoreconf -O--builddirectory=_build -O--buildsystem=golang dh_auto_configure -O--builddirectory=_build -O--buildsystem=golang dh_auto_build -O--builddirectory=_build -O--buildsystem=golang - cd _build && go install -trimpath -v -p 6 gopkg.in/gorp.v1 -internal/godebugs -internal/unsafeheader -internal/byteorder -internal/coverage/rtcov + cd _build && go install -trimpath -v -p 5 gopkg.in/gorp.v1 internal/goarch +internal/coverage/rtcov +internal/byteorder +internal/unsafeheader internal/cpu +internal/abi +internal/godebugs +internal/chacha8rand internal/goexperiment internal/goos -internal/abi internal/profilerecord internal/runtime/atomic internal/runtime/syscall +internal/bytealg runtime/internal/math -internal/chacha8rand runtime/internal/sys internal/race sync/atomic -internal/bytealg unicode -unicode/utf8 internal/runtime/exithook +unicode/utf8 internal/asan +internal/stringslite internal/itoa internal/msan cmp -internal/stringslite math/bits log/internal -math runtime -iter +math internal/reflectlite sync +iter slices -internal/bisect internal/testlog +internal/bisect errors sort -internal/godebug -internal/oserror io -path +internal/oserror strconv syscall +internal/godebug +path +bytes math/rand/v2 strings -bytes reflect regexp/syntax time -internal/syscall/execenv internal/syscall/unix +internal/syscall/execenv regexp context io/fs internal/poll internal/filepathlite -internal/fmtsort os +internal/fmtsort fmt -log database/sql/driver +log database/sql gopkg.in/gorp.v1 dh_auto_test -O--builddirectory=_build -O--buildsystem=golang - cd _build && go test -vet=off -v -p 6 gopkg.in/gorp.v1 + cd _build && go test -vet=off -v -p 5 gopkg.in/gorp.v1 === RUN TestCreateTablesIfNotExists -2025/11/08 15:25:25 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:25.022503 drop table if exists "invoice_test"; [] -gorptest: 15:25:25.022909 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:25.022937 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:25.022954 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:25.022970 drop table if exists "person_test"; [] -gorptest: 15:25:25.022989 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:25.023004 drop table if exists "id_created_test"; [] -gorptest: 15:25:25.023020 drop table if exists "type_conv_test"; [] -gorptest: 15:25:25.023039 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:25.023057 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:25.023078 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:25.023094 drop table if exists "time_test"; [] -gorptest: 15:25:25.023125 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:25.035106 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:25.042679 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:25.050030 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:25.057136 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:25.064529 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:25.072561 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:25.081729 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:25.088921 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:25.095765 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:25.102482 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:25.109579 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:25.116478 create table if not exists "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:25.116564 create table if not exists "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:25.116589 create table if not exists "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:25.116615 create table if not exists "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:25.116636 create table if not exists "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:25.116658 create table if not exists "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:25.116676 create table if not exists "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:25.116696 create table if not exists "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:25.116717 create table if not exists "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:25.116737 create table if not exists "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:25.116759 create table if not exists "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:25.116818 create table if not exists "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:25.116842 create table if not exists "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer, "External" integer) ; [] -gorptest: 15:25:25.116860 drop table if exists "invoice_test"; [] -gorptest: 15:25:25.121865 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:25.127020 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:25.131859 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:25.137045 drop table if exists "person_test"; [] -gorptest: 15:25:25.141932 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:25.149445 drop table if exists "id_created_test"; [] -gorptest: 15:25:25.159187 drop table if exists "type_conv_test"; [] -gorptest: 15:25:25.173272 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:25.183564 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:25.193128 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:25.203496 drop table if exists "time_test"; [] -gorptest: 15:25:25.212851 drop table if exists "id_created_test"; [] ---- PASS: TestCreateTablesIfNotExists (0.19s) +2024/10/06 09:03:58 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:03:58.128453 drop table if exists "invoice_test"; [] +gorptest: 09:03:58.128904 drop table if exists "invoice_tag_test"; [] +gorptest: 09:03:58.128947 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:03:58.128981 drop table if exists "invoice_override_test"; [] +gorptest: 09:03:58.129013 drop table if exists "person_test"; [] +gorptest: 09:03:58.129046 drop table if exists "ignored_column_test"; [] +gorptest: 09:03:58.129080 drop table if exists "id_created_test"; [] +gorptest: 09:03:58.129113 drop table if exists "type_conv_test"; [] +gorptest: 09:03:58.129149 drop table if exists "embedded_struct_test"; [] +gorptest: 09:03:58.129182 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:03:58.129207 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:03:58.129226 drop table if exists "time_test"; [] +gorptest: 09:03:58.129261 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:03:58.141759 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:03:58.153594 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:03:58.162448 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:03:58.174795 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:03:58.182039 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:03:58.189641 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:03:58.196498 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:03:58.203574 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:03:58.209955 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:03:58.216813 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:03:58.223432 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:03:58.232554 create table if not exists "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:03:58.232668 create table if not exists "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:03:58.232718 create table if not exists "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:03:58.232754 create table if not exists "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:03:58.232786 create table if not exists "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:03:58.232811 create table if not exists "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:03:58.232834 create table if not exists "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:03:58.232858 create table if not exists "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:03:58.232888 create table if not exists "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:03:58.232913 create table if not exists "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:03:58.232937 create table if not exists "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:03:58.232958 create table if not exists "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:03:58.232980 create table if not exists "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer, "External" integer) ; [] +gorptest: 09:03:58.233003 drop table if exists "invoice_test"; [] +gorptest: 09:03:58.240379 drop table if exists "invoice_tag_test"; [] +gorptest: 09:03:58.245505 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:03:58.250844 drop table if exists "invoice_override_test"; [] +gorptest: 09:03:58.258814 drop table if exists "person_test"; [] +gorptest: 09:03:58.268829 drop table if exists "ignored_column_test"; [] +gorptest: 09:03:58.278739 drop table if exists "id_created_test"; [] +gorptest: 09:03:58.290214 drop table if exists "type_conv_test"; [] +gorptest: 09:03:58.298278 drop table if exists "embedded_struct_test"; [] +gorptest: 09:03:58.308050 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:03:58.319891 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:03:58.339649 drop table if exists "time_test"; [] +gorptest: 09:03:58.363637 drop table if exists "id_created_test"; [] +--- PASS: TestCreateTablesIfNotExists (0.24s) === RUN TestTruncateTables -2025/11/08 15:25:25 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:25.213113 drop table if exists "invoice_test"; [] -gorptest: 15:25:25.213305 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:25.213330 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:25.213347 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:25.213365 drop table if exists "person_test"; [] -gorptest: 15:25:25.213381 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:25.213397 drop table if exists "id_created_test"; [] -gorptest: 15:25:25.213412 drop table if exists "type_conv_test"; [] -gorptest: 15:25:25.213428 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:25.213444 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:25.213461 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:25.213482 drop table if exists "time_test"; [] -gorptest: 15:25:25.213506 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:25.223360 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:25.233269 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:25.243437 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:25.255041 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:25.265334 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:25.275661 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:25.284643 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:25.295528 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:25.305559 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:25.315653 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:25.325083 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:25.333222 create table if not exists "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:25.333290 create table if not exists "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:25.333319 create table if not exists "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:25.333342 create table if not exists "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:25.333364 create table if not exists "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:25.333384 create table if not exists "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:25.333409 create table if not exists "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:25.333428 create table if not exists "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:25.333448 create table if not exists "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:25.333476 create table if not exists "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:25.333508 create table if not exists "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:25.333532 create table if not exists "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:25.333560 create table if not exists "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer, "External" integer) ; [] -gorptest: 15:25:25.333595 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1762615525333580402 2:1762615525333580402 3:"Bob" 4:"Smith" 5:1] -gorptest: 15:25:25.345620 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:0 2:1 3:"my invoice" 4:0 5:true] -gorptest: 15:25:25.357552 delete from "invoice_test"; [] -gorptest: 15:25:25.367270 delete from "invoice_tag_test"; [] -gorptest: 15:25:25.377140 delete from "alias_trans_field_test"; [] -gorptest: 15:25:25.386800 delete from "invoice_override_test"; [] -gorptest: 15:25:25.398593 delete from "person_test"; [] -gorptest: 15:25:25.409194 delete from "ignored_column_test"; [] -gorptest: 15:25:25.419467 delete from "id_created_test"; [] -gorptest: 15:25:25.429209 delete from "type_conv_test"; [] -gorptest: 15:25:25.439005 delete from "embedded_struct_test"; [] -gorptest: 15:25:25.493087 delete from "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:25.498164 delete from "embedded_autoincr_test"; [] -gorptest: 15:25:25.503726 delete from "time_test"; [] -gorptest: 15:25:25.508343 delete from "id_created_test"; [] -gorptest: 15:25:25.513251 SELECT * FROM person_test [] -gorptest: 15:25:25.513398 SELECT * FROM invoice_test [] -gorptest: 15:25:25.513447 drop table if exists "invoice_test"; [] -gorptest: 15:25:25.518556 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:25.523468 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:25.529325 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:25.537235 drop table if exists "person_test"; [] -gorptest: 15:25:25.551319 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:25.562824 drop table if exists "id_created_test"; [] -gorptest: 15:25:25.574812 drop table if exists "type_conv_test"; [] -gorptest: 15:25:25.587057 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:25.599455 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:25.610968 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:25.623212 drop table if exists "time_test"; [] -gorptest: 15:25:25.633549 drop table if exists "id_created_test"; [] +2024/10/06 09:03:58 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:03:58.363890 drop table if exists "invoice_test"; [] +gorptest: 09:03:58.364102 drop table if exists "invoice_tag_test"; [] +gorptest: 09:03:58.364124 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:03:58.364140 drop table if exists "invoice_override_test"; [] +gorptest: 09:03:58.364155 drop table if exists "person_test"; [] +gorptest: 09:03:58.364169 drop table if exists "ignored_column_test"; [] +gorptest: 09:03:58.364183 drop table if exists "id_created_test"; [] +gorptest: 09:03:58.364197 drop table if exists "type_conv_test"; [] +gorptest: 09:03:58.364211 drop table if exists "embedded_struct_test"; [] +gorptest: 09:03:58.364225 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:03:58.364240 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:03:58.364254 drop table if exists "time_test"; [] +gorptest: 09:03:58.364274 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:03:58.383619 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:03:58.389121 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:03:58.394218 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:03:58.399639 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:03:58.404487 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:03:58.409862 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:03:58.418038 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:03:58.428177 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:03:58.438303 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:03:58.447843 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:03:58.458214 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:03:58.467055 create table if not exists "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:03:58.467125 create table if not exists "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:03:58.467161 create table if not exists "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:03:58.467191 create table if not exists "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:03:58.467220 create table if not exists "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:03:58.467244 create table if not exists "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:03:58.467267 create table if not exists "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:03:58.467290 create table if not exists "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:03:58.467315 create table if not exists "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:03:58.467338 create table if not exists "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:03:58.467362 create table if not exists "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:03:58.467386 create table if not exists "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:03:58.467407 create table if not exists "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer, "External" integer) ; [] +gorptest: 09:03:58.467490 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1728205438467467879 2:1728205438467467879 3:"Bob" 4:"Smith" 5:1] +gorptest: 09:03:58.478654 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:0 2:1 3:"my invoice" 4:0 5:true] +gorptest: 09:03:58.490277 delete from "invoice_test"; [] +gorptest: 09:03:58.500304 delete from "invoice_tag_test"; [] +gorptest: 09:03:58.510649 delete from "alias_trans_field_test"; [] +gorptest: 09:03:58.520737 delete from "invoice_override_test"; [] +gorptest: 09:03:58.532478 delete from "person_test"; [] +gorptest: 09:03:58.542278 delete from "ignored_column_test"; [] +gorptest: 09:03:58.552211 delete from "id_created_test"; [] +gorptest: 09:03:58.562125 delete from "type_conv_test"; [] +gorptest: 09:03:58.572669 delete from "embedded_struct_test"; [] +gorptest: 09:03:58.582404 delete from "embedded_struct_before_autoincr_test"; [] +gorptest: 09:03:58.592608 delete from "embedded_autoincr_test"; [] +gorptest: 09:03:58.606220 delete from "time_test"; [] +gorptest: 09:03:58.614142 delete from "id_created_test"; [] +gorptest: 09:03:58.624595 SELECT * FROM person_test [] +gorptest: 09:03:58.624780 SELECT * FROM invoice_test [] +gorptest: 09:03:58.624850 drop table if exists "invoice_test"; [] +gorptest: 09:03:58.636283 drop table if exists "invoice_tag_test"; [] +gorptest: 09:03:58.648193 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:03:58.660358 drop table if exists "invoice_override_test"; [] +gorptest: 09:03:58.674014 drop table if exists "person_test"; [] +gorptest: 09:03:58.720263 drop table if exists "ignored_column_test"; [] +gorptest: 09:03:58.739938 drop table if exists "id_created_test"; [] +gorptest: 09:03:58.747912 drop table if exists "type_conv_test"; [] +gorptest: 09:03:58.753107 drop table if exists "embedded_struct_test"; [] +gorptest: 09:03:58.758246 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:03:58.763138 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:03:58.770217 drop table if exists "time_test"; [] +gorptest: 09:03:58.780144 drop table if exists "id_created_test"; [] --- PASS: TestTruncateTables (0.42s) === RUN TestCustomDateType -gorptest: 15:25:25.633806 create table "WithCustomDate" ("Id" integer not null primary key autoincrement, "Added" datetime) ; [] -gorptest: 15:25:25.643222 insert into "WithCustomDate" ("Id","Added") values (null,?); [1:2025-11-08 15:25:25 +0000 UTC] -gorptest: 15:25:25.651570 select "Id","Added" from "WithCustomDate" where "Id"=?; [1:1] -gorptest: 15:25:25.651711 drop table if exists "WithCustomDate"; [] ---- PASS: TestCustomDateType (0.03s) +gorptest: 09:03:58.780377 create table "WithCustomDate" ("Id" integer not null primary key autoincrement, "Added" datetime) ; [] +gorptest: 09:03:58.951685 insert into "WithCustomDate" ("Id","Added") values (null,?); [1:2024-10-06 09:03:58 +0000 UTC] +gorptest: 09:03:58.971673 select "Id","Added" from "WithCustomDate" where "Id"=?; [1:1] +gorptest: 09:03:58.971844 drop table if exists "WithCustomDate"; [] +--- PASS: TestCustomDateType (0.20s) === RUN TestUIntPrimaryKey -gorptest: 15:25:25.661128 create table if not exists "PersonUInt64" ("Id" integer not null primary key autoincrement, "Name" varchar(255)) ; [] -gorptest: 15:25:25.671638 create table if not exists "PersonUInt32" ("Id" integer not null primary key autoincrement, "Name" varchar(255)) ; [] -gorptest: 15:25:25.682686 create table if not exists "PersonUInt16" ("Id" integer not null primary key autoincrement, "Name" varchar(255)) ; [] -gorptest: 15:25:25.694831 insert into "PersonUInt64" ("Id","Name") values (null,?); [1:"name1"] -gorptest: 15:25:25.703471 insert into "PersonUInt32" ("Id","Name") values (null,?); [1:"name2"] -gorptest: 15:25:25.715387 insert into "PersonUInt16" ("Id","Name") values (null,?); [1:"name3"] -gorptest: 15:25:25.726731 drop table if exists "PersonUInt64"; [] -gorptest: 15:25:25.737287 drop table if exists "PersonUInt32"; [] -gorptest: 15:25:25.751305 drop table if exists "PersonUInt16"; [] ---- PASS: TestUIntPrimaryKey (0.13s) +gorptest: 09:03:58.978036 create table if not exists "PersonUInt64" ("Id" integer not null primary key autoincrement, "Name" varchar(255)) ; [] +gorptest: 09:03:58.985353 create table if not exists "PersonUInt32" ("Id" integer not null primary key autoincrement, "Name" varchar(255)) ; [] +gorptest: 09:03:58.990399 create table if not exists "PersonUInt16" ("Id" integer not null primary key autoincrement, "Name" varchar(255)) ; [] +gorptest: 09:03:58.995310 insert into "PersonUInt64" ("Id","Name") values (null,?); [1:"name1"] +gorptest: 09:03:58.999765 insert into "PersonUInt32" ("Id","Name") values (null,?); [1:"name2"] +gorptest: 09:03:59.007306 insert into "PersonUInt16" ("Id","Name") values (null,?); [1:"name3"] +gorptest: 09:03:59.012828 drop table if exists "PersonUInt64"; [] +gorptest: 09:03:59.023015 drop table if exists "PersonUInt32"; [] +gorptest: 09:03:59.027846 drop table if exists "PersonUInt16"; [] +--- PASS: TestUIntPrimaryKey (0.05s) === RUN TestSetUniqueTogether -gorptest: 15:25:25.788905 create table if not exists "UniqueColumns" ("FirstName" varchar(255), "LastName" varchar(255), "City" varchar(255), "ZipCode" integer, unique ("FirstName", "LastName"), unique ("City", "ZipCode")) ; [] -gorptest: 15:25:25.794748 insert into "UniqueColumns" ("FirstName","LastName","City","ZipCode") values (?,?,?,?); [1:"Steve" 2:"Jobs" 3:"Cupertino" 4:95014] -gorptest: 15:25:25.799803 insert into "UniqueColumns" ("FirstName","LastName","City","ZipCode") values (?,?,?,?); [1:"Steve" 2:"Jobs" 3:"Sunnyvale" 4:94085] -gorptest: 15:25:25.799892 insert into "UniqueColumns" ("FirstName","LastName","City","ZipCode") values (?,?,?,?); [1:"Steve" 2:"Wozniak" 3:"Cupertino" 4:95014] -gorptest: 15:25:25.799933 insert into "UniqueColumns" ("FirstName","LastName","City","ZipCode") values (?,?,?,?); [1:"Steve" 2:"Wozniak" 3:"Sunnyvale" 4:94085] -gorptest: 15:25:25.804713 drop table if exists "UniqueColumns"; [] ---- PASS: TestSetUniqueTogether (0.03s) +gorptest: 09:03:59.032745 create table if not exists "UniqueColumns" ("FirstName" varchar(255), "LastName" varchar(255), "City" varchar(255), "ZipCode" integer, unique ("FirstName", "LastName"), unique ("City", "ZipCode")) ; [] +gorptest: 09:03:59.038013 insert into "UniqueColumns" ("FirstName","LastName","City","ZipCode") values (?,?,?,?); [1:"Steve" 2:"Jobs" 3:"Cupertino" 4:95014] +gorptest: 09:03:59.043173 insert into "UniqueColumns" ("FirstName","LastName","City","ZipCode") values (?,?,?,?); [1:"Steve" 2:"Jobs" 3:"Sunnyvale" 4:94085] +gorptest: 09:03:59.043267 insert into "UniqueColumns" ("FirstName","LastName","City","ZipCode") values (?,?,?,?); [1:"Steve" 2:"Wozniak" 3:"Cupertino" 4:95014] +gorptest: 09:03:59.043324 insert into "UniqueColumns" ("FirstName","LastName","City","ZipCode") values (?,?,?,?); [1:"Steve" 2:"Wozniak" 3:"Sunnyvale" 4:94085] +gorptest: 09:03:59.049014 drop table if exists "UniqueColumns"; [] +--- PASS: TestSetUniqueTogether (0.02s) === RUN TestPersistentUser -gorptest: 15:25:25.816742 drop table if exists PersistentUser [] -gorptest: 15:25:25.816951 create table if not exists "PersistentUser" ("mykey" integer not null primary key, "Id" varchar(255), "PassedTraining" integer) ; [] -gorptest: 15:25:25.827158 insert into "PersistentUser" ("mykey","Id","PassedTraining") values (?,?,?); [1:43 2:"33r" 3:false] -gorptest: 15:25:25.835750 select "mykey","Id","PassedTraining" from "PersistentUser" where "mykey"=?; [1:43] -gorptest: 15:25:25.835843 select * from PersistentUser [] -gorptest: 15:25:25.835895 select * from PersistentUser [] -gorptest: 15:25:25.835932 select * from PersistentUser [] -gorptest: 15:25:25.835963 select Id from PersistentUser [] -gorptest: 15:25:25.835990 select mykey from PersistentUser [] -gorptest: 15:25:25.836019 select PassedTraining from PersistentUser [] -gorptest: 15:25:25.836042 select Id from PersistentUser [] -gorptest: 15:25:25.836068 drop table if exists "PersistentUser"; [] +gorptest: 09:03:59.054188 drop table if exists PersistentUser [] +gorptest: 09:03:59.054495 create table if not exists "PersistentUser" ("mykey" integer not null primary key, "Id" varchar(255), "PassedTraining" integer) ; [] +gorptest: 09:03:59.061766 insert into "PersistentUser" ("mykey","Id","PassedTraining") values (?,?,?); [1:43 2:"33r" 3:false] +gorptest: 09:03:59.069295 select "mykey","Id","PassedTraining" from "PersistentUser" where "mykey"=?; [1:43] +gorptest: 09:03:59.069387 select * from PersistentUser [] +gorptest: 09:03:59.069533 select * from PersistentUser [] +gorptest: 09:03:59.069592 select * from PersistentUser [] +gorptest: 09:03:59.069648 select Id from PersistentUser [] +gorptest: 09:03:59.069690 select mykey from PersistentUser [] +gorptest: 09:03:59.069730 select PassedTraining from PersistentUser [] +gorptest: 09:03:59.069769 select Id from PersistentUser [] +gorptest: 09:03:59.069809 drop table if exists "PersistentUser"; [] --- PASS: TestPersistentUser (0.03s) === RUN TestNamedQueryMap -gorptest: 15:25:25.845305 drop table if exists PersistentUser [] -gorptest: 15:25:25.845474 create table if not exists "PersistentUser" ("mykey" integer not null primary key, "Id" varchar(255), "PassedTraining" integer) ; [] -gorptest: 15:25:25.854662 insert into "PersistentUser" ("mykey","Id","PassedTraining") values (?,?,?); [1:43 2:"33r" 3:false] -gorptest: 15:25:25.862897 insert into "PersistentUser" ("mykey","Id","PassedTraining") values (?,?,?); [1:500 2:"abc" 3:false] -gorptest: 15:25:25.870922 select * from PersistentUser where mykey = ? [1:43] -gorptest: 15:25:25.871006 select * from PersistentUser where mykey = ? [1:43] -gorptest: 15:25:25.871055 +gorptest: 09:03:59.083694 drop table if exists PersistentUser [] +gorptest: 09:03:59.083967 create table if not exists "PersistentUser" ("mykey" integer not null primary key, "Id" varchar(255), "PassedTraining" integer) ; [] +gorptest: 09:03:59.093747 insert into "PersistentUser" ("mykey","Id","PassedTraining") values (?,?,?); [1:43 2:"33r" 3:false] +gorptest: 09:03:59.101301 insert into "PersistentUser" ("mykey","Id","PassedTraining") values (?,?,?); [1:500 2:"abc" 3:false] +gorptest: 09:03:59.113782 select * from PersistentUser where mykey = ? [1:43] +gorptest: 09:03:59.113929 select * from PersistentUser where mykey = ? [1:43] +gorptest: 09:03:59.114002 select * from PersistentUser where mykey = ? and PassedTraining = ? and Id = ? [1:43 2:false 3:"33r"] -gorptest: 15:25:25.871107 +gorptest: 09:03:59.114081 select * from PersistentUser where mykey = ? and Id != 'abc:def' [1:43] -gorptest: 15:25:25.871197 drop table if exists "PersistentUser"; [] ---- PASS: TestNamedQueryMap (0.04s) +gorptest: 09:03:59.114145 drop table if exists "PersistentUser"; [] +--- PASS: TestNamedQueryMap (0.05s) === RUN TestNamedQueryStruct -gorptest: 15:25:25.881404 drop table if exists PersistentUser [] -gorptest: 15:25:25.881753 create table if not exists "PersistentUser" ("mykey" integer not null primary key, "Id" varchar(255), "PassedTraining" integer) ; [] -gorptest: 15:25:25.891105 insert into "PersistentUser" ("mykey","Id","PassedTraining") values (?,?,?); [1:43 2:"33r" 3:false] -gorptest: 15:25:25.899294 insert into "PersistentUser" ("mykey","Id","PassedTraining") values (?,?,?); [1:500 2:"abc" 3:false] -gorptest: 15:25:25.907321 +gorptest: 09:03:59.130352 drop table if exists PersistentUser [] +gorptest: 09:03:59.130632 create table if not exists "PersistentUser" ("mykey" integer not null primary key, "Id" varchar(255), "PassedTraining" integer) ; [] +gorptest: 09:03:59.152694 insert into "PersistentUser" ("mykey","Id","PassedTraining") values (?,?,?); [1:43 2:"33r" 3:false] +gorptest: 09:03:59.158074 insert into "PersistentUser" ("mykey","Id","PassedTraining") values (?,?,?); [1:500 2:"abc" 3:false] +gorptest: 09:03:59.162803 select * from PersistentUser where mykey = ? and PassedTraining = ? and Id = ? [1:43 2:false 3:"33r"] -gorptest: 15:25:25.907429 drop table if exists "PersistentUser"; [] +gorptest: 09:03:59.162939 drop table if exists "PersistentUser"; [] --- PASS: TestNamedQueryStruct (0.04s) === RUN TestReturnsNonNilSlice -2025/11/08 15:25:25 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:25.916872 drop table if exists "invoice_test"; [] -gorptest: 15:25:25.917038 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:25.917062 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:25.917079 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:25.917097 drop table if exists "person_test"; [] -gorptest: 15:25:25.917113 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:25.917130 drop table if exists "id_created_test"; [] -gorptest: 15:25:25.917146 drop table if exists "type_conv_test"; [] -gorptest: 15:25:25.917161 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:25.917178 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:25.917194 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:25.917212 drop table if exists "time_test"; [] -gorptest: 15:25:25.917234 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:25.927348 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:25.938632 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:25.951557 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:25.965559 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:25.976587 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:25.990147 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:26.000547 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:26.013137 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:26.024982 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:26.036948 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:26.049038 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:26.058910 select * from invoice_test where id=99999 [] -gorptest: 15:25:26.059001 select * from invoice_test where id=99999 [] -gorptest: 15:25:26.059046 drop table if exists "invoice_test"; [] -gorptest: 15:25:26.067183 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:26.077153 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:26.087387 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:26.098791 drop table if exists "person_test"; [] -gorptest: 15:25:26.108568 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:26.119431 drop table if exists "id_created_test"; [] -gorptest: 15:25:26.129054 drop table if exists "type_conv_test"; [] -gorptest: 15:25:26.138819 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:26.148671 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:26.158801 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:26.168856 drop table if exists "time_test"; [] -gorptest: 15:25:26.179051 drop table if exists "id_created_test"; [] ---- PASS: TestReturnsNonNilSlice (0.26s) +2024/10/06 09:03:59 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:03:59.170967 drop table if exists "invoice_test"; [] +gorptest: 09:03:59.171196 drop table if exists "invoice_tag_test"; [] +gorptest: 09:03:59.171225 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:03:59.171245 drop table if exists "invoice_override_test"; [] +gorptest: 09:03:59.171264 drop table if exists "person_test"; [] +gorptest: 09:03:59.171309 drop table if exists "ignored_column_test"; [] +gorptest: 09:03:59.171355 drop table if exists "id_created_test"; [] +gorptest: 09:03:59.171389 drop table if exists "type_conv_test"; [] +gorptest: 09:03:59.171418 drop table if exists "embedded_struct_test"; [] +gorptest: 09:03:59.171439 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:03:59.171487 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:03:59.171510 drop table if exists "time_test"; [] +gorptest: 09:03:59.171534 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:03:59.178688 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:03:59.189943 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:03:59.206220 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:03:59.219610 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:03:59.232424 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:03:59.247426 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:03:59.259933 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:03:59.271676 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:03:59.283593 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:03:59.296029 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:03:59.307742 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:03:59.317977 select * from invoice_test where id=99999 [] +gorptest: 09:03:59.318112 select * from invoice_test where id=99999 [] +gorptest: 09:03:59.318190 drop table if exists "invoice_test"; [] +gorptest: 09:03:59.329986 drop table if exists "invoice_tag_test"; [] +gorptest: 09:03:59.340306 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:03:59.349262 drop table if exists "invoice_override_test"; [] +gorptest: 09:03:59.361606 drop table if exists "person_test"; [] +gorptest: 09:03:59.371746 drop table if exists "ignored_column_test"; [] +gorptest: 09:03:59.382260 drop table if exists "id_created_test"; [] +gorptest: 09:03:59.393258 drop table if exists "type_conv_test"; [] +gorptest: 09:03:59.401589 drop table if exists "embedded_struct_test"; [] +gorptest: 09:03:59.411339 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:03:59.421382 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:03:59.431104 drop table if exists "time_test"; [] +gorptest: 09:03:59.441915 drop table if exists "id_created_test"; [] +--- PASS: TestReturnsNonNilSlice (0.27s) === RUN TestOverrideVersionCol -gorptest: 15:25:26.179232 create table "InvoicePersonView" ("InvoiceId" integer not null, "PersonId" integer not null, "Memo" varchar(255), "FName" varchar(255), "LegacyVersion" integer, primary key ("InvoiceId", "PersonId")) ; [] -gorptest: 15:25:26.191616 update "InvoicePersonView" set "InvoiceId"=?, "PersonId"=?, "Memo"=?, "FName"=?, "LegacyVersion"=? where "InvoiceId"=? and "PersonId"=? and "LegacyVersion"=?; [1:1 2:2 3:"memo" 4:"fname" 5:1 6:1 7:2 8:1] -gorptest: 15:25:26.191722 drop table if exists "InvoicePersonView"; [] +gorptest: 09:03:59.442128 create table "InvoicePersonView" ("InvoiceId" integer not null, "PersonId" integer not null, "Memo" varchar(255), "FName" varchar(255), "LegacyVersion" integer, primary key ("InvoiceId", "PersonId")) ; [] +gorptest: 09:03:59.453312 update "InvoicePersonView" set "InvoiceId"=?, "PersonId"=?, "Memo"=?, "FName"=?, "LegacyVersion"=? where "InvoiceId"=? and "PersonId"=? and "LegacyVersion"=?; [1:1 2:2 3:"memo" 4:"fname" 5:1 6:1 7:2 8:1] +gorptest: 09:03:59.453508 drop table if exists "InvoicePersonView"; [] --- PASS: TestOverrideVersionCol (0.02s) === RUN TestOptimisticLocking -2025/11/08 15:25:26 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:26.203158 drop table if exists "invoice_test"; [] -gorptest: 15:25:26.203331 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:26.203357 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:26.203374 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:26.203393 drop table if exists "person_test"; [] -gorptest: 15:25:26.203409 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:26.203428 drop table if exists "id_created_test"; [] -gorptest: 15:25:26.203444 drop table if exists "type_conv_test"; [] -gorptest: 15:25:26.203463 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:26.203479 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:26.203498 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:26.203513 drop table if exists "time_test"; [] -gorptest: 15:25:26.203536 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:26.213253 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:26.223018 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:26.233043 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:26.245194 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:26.255089 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:26.264700 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:26.275437 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:26.285218 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:26.296061 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:26.305091 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:26.314701 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:26.323118 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1762615526323089576 2:1762615526323089576 3:"Bob" 4:"Smith" 5:1] -gorptest: 15:25:26.335362 select "Id","Created","Updated","FName","LName","Version" from "person_test" where "Id"=?; [1:1] -gorptest: 15:25:26.335481 update "person_test" set "Created"=?, "Updated"=?, "FName"=?, "LName"=?, "Version"=? where "Id"=? and "Version"=?; [1:1762615526323089576 2:1762615526323089576 3:"preupdate" 4:"Edwards" 5:2 6:1 7:1] -gorptest: 15:25:26.345423 update "person_test" set "Created"=?, "Updated"=?, "FName"=?, "LName"=?, "Version"=? where "Id"=? and "Version"=?; [1:1762615526323089576 2:1762615526323089576 3:"preupdate" 4:"Howard" 5:2 6:1 7:1] -gorptest: 15:25:26.345505 select "Id","Created","Updated","FName","LName","Version" from "person_test" where "Id"=?; [1:1] -gorptest: 15:25:26.345558 delete from "person_test" where "Id"=? and "Version"=?; [1:1 2:1] -gorptest: 15:25:26.345594 select "Id","Created","Updated","FName","LName","Version" from "person_test" where "Id"=?; [1:1] -gorptest: 15:25:26.345628 drop table if exists "invoice_test"; [] -gorptest: 15:25:26.354885 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:26.367222 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:26.379467 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:26.393136 drop table if exists "person_test"; [] -gorptest: 15:25:26.407912 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:26.419655 drop table if exists "id_created_test"; [] -gorptest: 15:25:26.430933 drop table if exists "type_conv_test"; [] -gorptest: 15:25:26.442837 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:26.454928 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:26.467179 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:26.478773 drop table if exists "time_test"; [] -gorptest: 15:25:26.508970 drop table if exists "id_created_test"; [] ---- PASS: TestOptimisticLocking (0.31s) +2024/10/06 09:03:59 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:03:59.466073 drop table if exists "invoice_test"; [] +gorptest: 09:03:59.466302 drop table if exists "invoice_tag_test"; [] +gorptest: 09:03:59.466331 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:03:59.466353 drop table if exists "invoice_override_test"; [] +gorptest: 09:03:59.466372 drop table if exists "person_test"; [] +gorptest: 09:03:59.466392 drop table if exists "ignored_column_test"; [] +gorptest: 09:03:59.466411 drop table if exists "id_created_test"; [] +gorptest: 09:03:59.466429 drop table if exists "type_conv_test"; [] +gorptest: 09:03:59.466449 drop table if exists "embedded_struct_test"; [] +gorptest: 09:03:59.466467 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:03:59.466486 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:03:59.466506 drop table if exists "time_test"; [] +gorptest: 09:03:59.466532 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:03:59.479968 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:03:59.503588 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:03:59.519570 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:03:59.525738 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:03:59.531090 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:03:59.535974 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:03:59.545959 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:03:59.556099 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:03:59.566210 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:03:59.575976 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:03:59.585483 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:03:59.594076 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1728205439594056683 2:1728205439594056683 3:"Bob" 4:"Smith" 5:1] +gorptest: 09:03:59.606233 select "Id","Created","Updated","FName","LName","Version" from "person_test" where "Id"=?; [1:1] +gorptest: 09:03:59.606349 update "person_test" set "Created"=?, "Updated"=?, "FName"=?, "LName"=?, "Version"=? where "Id"=? and "Version"=?; [1:1728205439594056683 2:1728205439594056683 3:"preupdate" 4:"Edwards" 5:2 6:1 7:1] +gorptest: 09:03:59.616222 update "person_test" set "Created"=?, "Updated"=?, "FName"=?, "LName"=?, "Version"=? where "Id"=? and "Version"=?; [1:1728205439594056683 2:1728205439594056683 3:"preupdate" 4:"Howard" 5:2 6:1 7:1] +gorptest: 09:03:59.616326 select "Id","Created","Updated","FName","LName","Version" from "person_test" where "Id"=?; [1:1] +gorptest: 09:03:59.616414 delete from "person_test" where "Id"=? and "Version"=?; [1:1 2:1] +gorptest: 09:03:59.616470 select "Id","Created","Updated","FName","LName","Version" from "person_test" where "Id"=?; [1:1] +gorptest: 09:03:59.616529 drop table if exists "invoice_test"; [] +gorptest: 09:03:59.625812 drop table if exists "invoice_tag_test"; [] +gorptest: 09:03:59.637164 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:03:59.649625 drop table if exists "invoice_override_test"; [] +gorptest: 09:03:59.664257 drop table if exists "person_test"; [] +gorptest: 09:03:59.677949 drop table if exists "ignored_column_test"; [] +gorptest: 09:03:59.689948 drop table if exists "id_created_test"; [] +gorptest: 09:03:59.702367 drop table if exists "type_conv_test"; [] +gorptest: 09:03:59.723630 drop table if exists "embedded_struct_test"; [] +gorptest: 09:03:59.732452 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:03:59.742376 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:03:59.758245 drop table if exists "time_test"; [] +gorptest: 09:03:59.768196 drop table if exists "id_created_test"; [] +--- PASS: TestOptimisticLocking (0.30s) === RUN TestDoubleAddTable --- PASS: TestDoubleAddTable (0.00s) === RUN TestNullValues -gorptest: 15:25:26.509239 create table "TableWithNull" ("Id" integer not null primary key, "Str" varchar(255), "Int64" integer, "Float64" real, "Bool" integer, "Bytes" blob) ; [] -gorptest: 15:25:26.514493 insert into TableWithNull values (10, null, null, null, null, null) [] -gorptest: 15:25:26.520003 select "Id","Str","Int64","Float64","Bool","Bytes" from "TableWithNull" where "Id"=?; [1:10] -gorptest: 15:25:26.520110 update "TableWithNull" set "Id"=?, "Str"=?, "Int64"=?, "Float64"=?, "Bool"=?, "Bytes"=? where "Id"=?; [1:10 2:"hi" 3:999 4:53.33 5:true 6:[1 30 31 33] 7:10] -gorptest: 15:25:26.525314 select "Id","Str","Int64","Float64","Bool","Bytes" from "TableWithNull" where "Id"=?; [1:10] -gorptest: 15:25:26.525394 drop table if exists "TableWithNull"; [] ---- PASS: TestNullValues (0.02s) +gorptest: 09:03:59.768486 create table "TableWithNull" ("Id" integer not null primary key, "Str" varchar(255), "Int64" integer, "Float64" real, "Bool" integer, "Bytes" blob) ; [] +gorptest: 09:03:59.777369 insert into TableWithNull values (10, null, null, null, null, null) [] +gorptest: 09:03:59.791023 select "Id","Str","Int64","Float64","Bool","Bytes" from "TableWithNull" where "Id"=?; [1:10] +gorptest: 09:03:59.791332 update "TableWithNull" set "Id"=?, "Str"=?, "Int64"=?, "Float64"=?, "Bool"=?, "Bytes"=? where "Id"=?; [1:10 2:"hi" 3:999 4:53.33 5:true 6:[1 30 31 33] 7:10] +gorptest: 09:03:59.803323 select "Id","Str","Int64","Float64","Bool","Bytes" from "TableWithNull" where "Id"=?; [1:10] +gorptest: 09:03:59.803539 drop table if exists "TableWithNull"; [] +--- PASS: TestNullValues (0.05s) === RUN TestColumnProps -gorptest: 15:25:26.530278 create table "Invoice" ("Id" integer not null primary key autoincrement, "date_created" integer, "Memo" varchar(10), "PersonId" integer unique, "IsPaid" integer) ; [] -gorptest: 15:25:26.537354 insert into "Invoice" ("Id","date_created","Memo","PersonId","IsPaid") values (null,?,?,?,?); [1:0 2:"my invoice" 3:0 4:true] -gorptest: 15:25:26.547461 select "Id","date_created","Memo","PersonId","IsPaid" from "Invoice" where "Id"=?; [1:1] -gorptest: 15:25:26.547542 insert into "Invoice" ("Id","date_created","Memo","PersonId","IsPaid") values (null,?,?,?,?); [1:0 2:"this memo is too long" 3:0 4:true] -gorptest: 15:25:26.547595 insert into "Invoice" ("Id","date_created","Memo","PersonId","IsPaid") values (null,?,?,?,?); [1:0 2:"my invoice2" 3:0 4:false] -gorptest: 15:25:26.547627 drop table if exists "Invoice"; [] ---- PASS: TestColumnProps (0.03s) +gorptest: 09:03:59.815739 create table "Invoice" ("Id" integer not null primary key autoincrement, "date_created" integer, "Memo" varchar(10), "PersonId" integer unique, "IsPaid" integer) ; [] +gorptest: 09:03:59.923015 insert into "Invoice" ("Id","date_created","Memo","PersonId","IsPaid") values (null,?,?,?,?); [1:0 2:"my invoice" 3:0 4:true] +gorptest: 09:03:59.928263 select "Id","date_created","Memo","PersonId","IsPaid" from "Invoice" where "Id"=?; [1:1] +gorptest: 09:03:59.928408 insert into "Invoice" ("Id","date_created","Memo","PersonId","IsPaid") values (null,?,?,?,?); [1:0 2:"this memo is too long" 3:0 4:true] +gorptest: 09:03:59.928491 insert into "Invoice" ("Id","date_created","Memo","PersonId","IsPaid") values (null,?,?,?,?); [1:0 2:"my invoice2" 3:0 4:false] +gorptest: 09:03:59.928545 drop table if exists "Invoice"; [] +--- PASS: TestColumnProps (0.12s) === RUN TestRawSelect -2025/11/08 15:25:26 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:26.558986 drop table if exists "invoice_test"; [] -gorptest: 15:25:26.559172 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:26.559196 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:26.559217 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:26.559235 drop table if exists "person_test"; [] -gorptest: 15:25:26.559252 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:26.559268 drop table if exists "id_created_test"; [] -gorptest: 15:25:26.559286 drop table if exists "type_conv_test"; [] -gorptest: 15:25:26.559302 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:26.559318 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:26.559335 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:26.559350 drop table if exists "time_test"; [] -gorptest: 15:25:26.559373 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:26.568739 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:26.580811 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:26.592562 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:26.606675 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:26.619157 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:26.631187 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:26.643110 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:26.659194 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:26.671327 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:26.683417 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:26.694575 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:26.705671 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1762615526705644728 2:1762615526705644728 3:"bob" 4:"smith" 5:1] -gorptest: 15:25:26.717320 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:0 2:0 3:"xmas order" 4:1 5:true] -gorptest: 15:25:26.725593 select i.Id InvoiceId, p.Id PersonId, i.Memo, p.FName from invoice_test i, person_test p where i.PersonId = p.Id [] -gorptest: 15:25:26.725721 drop table if exists "invoice_test"; [] -gorptest: 15:25:26.733334 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:26.743907 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:26.753045 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:26.765133 drop table if exists "person_test"; [] -gorptest: 15:25:26.774677 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:26.784509 drop table if exists "id_created_test"; [] -gorptest: 15:25:26.795562 drop table if exists "type_conv_test"; [] -gorptest: 15:25:26.805607 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:26.815392 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:26.825502 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:26.835330 drop table if exists "time_test"; [] -gorptest: 15:25:26.845298 drop table if exists "id_created_test"; [] +2024/10/06 09:03:59 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:03:59.934464 drop table if exists "invoice_test"; [] +gorptest: 09:03:59.934694 drop table if exists "invoice_tag_test"; [] +gorptest: 09:03:59.934730 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:03:59.934752 drop table if exists "invoice_override_test"; [] +gorptest: 09:03:59.934771 drop table if exists "person_test"; [] +gorptest: 09:03:59.934795 drop table if exists "ignored_column_test"; [] +gorptest: 09:03:59.934814 drop table if exists "id_created_test"; [] +gorptest: 09:03:59.934832 drop table if exists "type_conv_test"; [] +gorptest: 09:03:59.934850 drop table if exists "embedded_struct_test"; [] +gorptest: 09:03:59.934868 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:03:59.934886 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:03:59.934909 drop table if exists "time_test"; [] +gorptest: 09:03:59.934935 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:03:59.940185 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:03:59.945364 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:03:59.950246 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:03:59.955275 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:03:59.960109 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:03:59.965562 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:03:59.970079 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:03:59.974690 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:03:59.979748 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:03:59.985170 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:03:59.997782 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:00.141272 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1728205440141246868 2:1728205440141246868 3:"bob" 4:"smith" 5:1] +gorptest: 09:04:00.146403 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:0 2:0 3:"xmas order" 4:1 5:true] +gorptest: 09:04:00.151021 select i.Id InvoiceId, p.Id PersonId, i.Memo, p.FName from invoice_test i, person_test p where i.PersonId = p.Id [] +gorptest: 09:04:00.151181 drop table if exists "invoice_test"; [] +gorptest: 09:04:00.156219 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:00.162023 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:00.167586 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:00.172797 drop table if exists "person_test"; [] +gorptest: 09:04:00.178626 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:00.184416 drop table if exists "id_created_test"; [] +gorptest: 09:04:00.189915 drop table if exists "type_conv_test"; [] +gorptest: 09:04:00.194999 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:00.202848 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:00.210165 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:00.219923 drop table if exists "time_test"; [] +gorptest: 09:04:00.225917 drop table if exists "id_created_test"; [] --- PASS: TestRawSelect (0.29s) === RUN TestHooks -2025/11/08 15:25:26 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:26.845501 drop table if exists "invoice_test"; [] -gorptest: 15:25:26.845680 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:26.845703 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:26.845719 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:26.845735 drop table if exists "person_test"; [] -gorptest: 15:25:26.845751 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:26.845766 drop table if exists "id_created_test"; [] -gorptest: 15:25:26.845782 drop table if exists "type_conv_test"; [] -gorptest: 15:25:26.845798 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:26.845813 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:26.845829 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:26.845845 drop table if exists "time_test"; [] -gorptest: 15:25:26.845866 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:26.854441 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:26.865193 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:26.874560 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:26.887091 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:26.897231 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:26.906881 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:26.916574 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:26.926526 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:26.936572 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:26.946478 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:26.957526 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:26.965320 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1762615526965281103 2:1762615526965281103 3:"bob" 4:"smith" 5:1] -gorptest: 15:25:26.977272 select "Id","Created","Updated","FName","LName","Version" from "person_test" where "Id"=?; [1:1] -gorptest: 15:25:26.977368 update "person_test" set "Created"=?, "Updated"=?, "FName"=?, "LName"=?, "Version"=? where "Id"=? and "Version"=?; [1:1762615526965281103 2:1762615526965281103 3:"preupdate" 4:"postget" 5:2 6:1 7:1] -gorptest: 15:25:26.987267 select * from person_test where id = ? [1:1] -gorptest: 15:25:26.987365 delete from "person_test" where "Id"=? and "Version"=?; [1:1 2:2] -gorptest: 15:25:26.997228 drop table if exists "invoice_test"; [] -gorptest: 15:25:27.007383 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:27.019294 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:27.031560 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:27.045109 drop table if exists "person_test"; [] -gorptest: 15:25:27.058793 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:27.070844 drop table if exists "id_created_test"; [] -gorptest: 15:25:27.082647 drop table if exists "type_conv_test"; [] -gorptest: 15:25:27.095471 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:27.106557 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:27.118966 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:27.130523 drop table if exists "time_test"; [] -gorptest: 15:25:27.140727 drop table if exists "id_created_test"; [] +2024/10/06 09:04:00 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:00.226247 drop table if exists "invoice_test"; [] +gorptest: 09:04:00.226536 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:00.226572 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:00.226593 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:00.226611 drop table if exists "person_test"; [] +gorptest: 09:04:00.226630 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:00.226649 drop table if exists "id_created_test"; [] +gorptest: 09:04:00.226668 drop table if exists "type_conv_test"; [] +gorptest: 09:04:00.226691 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:00.226709 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:00.226727 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:00.226745 drop table if exists "time_test"; [] +gorptest: 09:04:00.226773 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:00.232306 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:00.239672 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:00.244629 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:00.249504 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:00.256532 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:00.262186 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:00.272042 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:00.283016 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:00.296655 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:00.342687 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:00.349044 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:00.361207 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1728205440361185865 2:1728205440361185865 3:"bob" 4:"smith" 5:1] +gorptest: 09:04:00.371423 select "Id","Created","Updated","FName","LName","Version" from "person_test" where "Id"=?; [1:1] +gorptest: 09:04:00.371596 update "person_test" set "Created"=?, "Updated"=?, "FName"=?, "LName"=?, "Version"=? where "Id"=? and "Version"=?; [1:1728205440361185865 2:1728205440361185865 3:"preupdate" 4:"postget" 5:2 6:1 7:1] +gorptest: 09:04:00.376967 select * from person_test where id = ? [1:1] +gorptest: 09:04:00.377102 delete from "person_test" where "Id"=? and "Version"=?; [1:1 2:2] +gorptest: 09:04:00.384099 drop table if exists "invoice_test"; [] +gorptest: 09:04:00.391583 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:00.399248 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:00.412339 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:00.426961 drop table if exists "person_test"; [] +gorptest: 09:04:00.440550 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:00.452781 drop table if exists "id_created_test"; [] +gorptest: 09:04:00.464910 drop table if exists "type_conv_test"; [] +gorptest: 09:04:00.476040 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:00.503282 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:00.508627 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:00.518512 drop table if exists "time_test"; [] +gorptest: 09:04:00.529001 drop table if exists "id_created_test"; [] --- PASS: TestHooks (0.30s) === RUN TestTransaction -2025/11/08 15:25:27 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:27.140973 drop table if exists "invoice_test"; [] -gorptest: 15:25:27.141171 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:27.141197 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:27.141213 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:27.141232 drop table if exists "person_test"; [] -gorptest: 15:25:27.141248 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:27.141264 drop table if exists "id_created_test"; [] -gorptest: 15:25:27.141282 drop table if exists "type_conv_test"; [] -gorptest: 15:25:27.141298 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:27.141316 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:27.141332 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:27.141350 drop table if exists "time_test"; [] -gorptest: 15:25:27.141372 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:27.151158 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:27.162885 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:27.177805 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:27.188889 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:27.201143 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:27.213197 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:27.225308 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:27.237210 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:27.249038 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:27.260783 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:27.272595 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:27.282640 begin; [] -gorptest: 15:25:27.282702 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:100 2:200 3:"t1" 4:0 5:true] -gorptest: 15:25:27.282820 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:100 2:200 3:"t2" 4:0 5:false] -gorptest: 15:25:27.282848 commit; [] -gorptest: 15:25:27.290711 select "Id","Created","Updated","Memo","PersonId","IsPaid" from "invoice_test" where "Id"=?; [1:1] -gorptest: 15:25:27.290815 select "Id","Created","Updated","Memo","PersonId","IsPaid" from "invoice_test" where "Id"=?; [1:2] -gorptest: 15:25:27.290857 drop table if exists "invoice_test"; [] -gorptest: 15:25:27.298839 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:27.308681 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:27.319043 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:27.330843 drop table if exists "person_test"; [] -gorptest: 15:25:27.340785 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:27.351505 drop table if exists "id_created_test"; [] -gorptest: 15:25:27.360461 drop table if exists "type_conv_test"; [] -gorptest: 15:25:27.370543 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:27.380532 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:27.391287 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:27.401146 drop table if exists "time_test"; [] -gorptest: 15:25:27.411123 drop table if exists "id_created_test"; [] ---- PASS: TestTransaction (0.27s) +2024/10/06 09:04:00 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:00.529269 drop table if exists "invoice_test"; [] +gorptest: 09:04:00.529590 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:00.529623 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:00.529662 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:00.529690 drop table if exists "person_test"; [] +gorptest: 09:04:00.529711 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:00.529729 drop table if exists "id_created_test"; [] +gorptest: 09:04:00.529761 drop table if exists "type_conv_test"; [] +gorptest: 09:04:00.529782 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:00.529801 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:00.529820 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:00.529838 drop table if exists "time_test"; [] +gorptest: 09:04:00.529864 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:00.538404 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:00.550781 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:00.562412 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:00.576123 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:00.588989 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:00.600623 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:00.612949 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:00.624941 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:00.646657 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:00.657249 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:00.670949 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:00.680770 begin; [] +gorptest: 09:04:00.680854 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:100 2:200 3:"t1" 4:0 5:true] +gorptest: 09:04:00.681032 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:100 2:200 3:"t2" 4:0 5:false] +gorptest: 09:04:00.681085 commit; [] +gorptest: 09:04:00.695596 select "Id","Created","Updated","Memo","PersonId","IsPaid" from "invoice_test" where "Id"=?; [1:1] +gorptest: 09:04:00.695728 select "Id","Created","Updated","Memo","PersonId","IsPaid" from "invoice_test" where "Id"=?; [1:2] +gorptest: 09:04:00.695792 drop table if exists "invoice_test"; [] +gorptest: 09:04:00.711583 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:00.725325 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:00.739649 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:00.745952 drop table if exists "person_test"; [] +gorptest: 09:04:00.751617 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:00.760927 drop table if exists "id_created_test"; [] +gorptest: 09:04:00.771615 drop table if exists "type_conv_test"; [] +gorptest: 09:04:00.783790 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:00.799645 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:00.805294 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:00.812409 drop table if exists "time_test"; [] +gorptest: 09:04:00.818923 drop table if exists "id_created_test"; [] +--- PASS: TestTransaction (0.29s) === RUN TestSavepoint -2025/11/08 15:25:27 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:27.411331 drop table if exists "invoice_test"; [] -gorptest: 15:25:27.411504 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:27.411529 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:27.411546 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:27.411562 drop table if exists "person_test"; [] -gorptest: 15:25:27.411580 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:27.411604 drop table if exists "id_created_test"; [] -gorptest: 15:25:27.411632 drop table if exists "type_conv_test"; [] -gorptest: 15:25:27.411649 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:27.411665 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:27.411684 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:27.411700 drop table if exists "time_test"; [] -gorptest: 15:25:27.411723 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:27.421107 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:27.431456 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:27.441117 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:27.452878 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:27.463466 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:27.472703 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:27.483461 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:27.492714 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:27.502729 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:27.579298 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:28.099121 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:28.331136 begin; [] -gorptest: 15:25:28.331269 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:100 2:200 3:"unpaid" 4:0 5:false] -gorptest: 15:25:28.331459 select memo from invoice_test [] -gorptest: 15:25:28.331531 savepoint "foo" [1:] -gorptest: 15:25:28.331545 select memo from invoice_test [] -gorptest: 15:25:28.331590 update "invoice_test" set "Created"=?, "Updated"=?, "Memo"=?, "PersonId"=?, "IsPaid"=? where "Id"=?; [1:100 2:200 3:"paid" 4:0 5:false 6:1] -gorptest: 15:25:28.331623 select memo from invoice_test [] -gorptest: 15:25:28.331645 rollback to savepoint "foo" [1:] -gorptest: 15:25:28.331656 select memo from invoice_test [] -gorptest: 15:25:28.331670 rollback; [] -gorptest: 15:25:28.331742 drop table if exists "invoice_test"; [] -gorptest: 15:25:28.336965 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:28.342322 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:28.347919 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:28.352955 drop table if exists "person_test"; [] -gorptest: 15:25:28.357976 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:28.362826 drop table if exists "id_created_test"; [] -gorptest: 15:25:28.367660 drop table if exists "type_conv_test"; [] -gorptest: 15:25:28.372622 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:28.377219 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:28.381919 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:28.386823 drop table if exists "time_test"; [] -gorptest: 15:25:28.396305 drop table if exists "id_created_test"; [] ---- PASS: TestSavepoint (0.99s) +2024/10/06 09:04:00 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:00.819241 drop table if exists "invoice_test"; [] +gorptest: 09:04:00.819602 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:00.819641 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:00.819677 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:00.819714 drop table if exists "person_test"; [] +gorptest: 09:04:00.819754 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:00.819795 drop table if exists "id_created_test"; [] +gorptest: 09:04:00.819830 drop table if exists "type_conv_test"; [] +gorptest: 09:04:00.819866 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:00.819906 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:00.819944 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:00.819975 drop table if exists "time_test"; [] +gorptest: 09:04:00.820022 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:00.827639 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:00.839349 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:00.859627 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:00.875615 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:00.895640 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:00.907825 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:00.927572 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:00.951586 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:00.971574 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:00.983901 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:00.999587 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:01.019586 begin; [] +gorptest: 09:04:01.019651 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:100 2:200 3:"unpaid" 4:0 5:false] +gorptest: 09:04:01.019791 select memo from invoice_test [] +gorptest: 09:04:01.019844 savepoint "foo" [1:] +gorptest: 09:04:01.019858 select memo from invoice_test [] +gorptest: 09:04:01.019922 update "invoice_test" set "Created"=?, "Updated"=?, "Memo"=?, "PersonId"=?, "IsPaid"=? where "Id"=?; [1:100 2:200 3:"paid" 4:0 5:false 6:1] +gorptest: 09:04:01.019964 select memo from invoice_test [] +gorptest: 09:04:01.019994 rollback to savepoint "foo" [1:] +gorptest: 09:04:01.020010 select memo from invoice_test [] +gorptest: 09:04:01.020032 rollback; [] +gorptest: 09:04:01.020117 drop table if exists "invoice_test"; [] +gorptest: 09:04:01.036630 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:01.051603 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:01.067639 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:01.083629 drop table if exists "person_test"; [] +gorptest: 09:04:01.115136 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:01.144255 drop table if exists "id_created_test"; [] +gorptest: 09:04:01.161167 drop table if exists "type_conv_test"; [] +gorptest: 09:04:01.179576 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:01.186368 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:01.193105 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:01.213295 drop table if exists "time_test"; [] +gorptest: 09:04:01.226213 drop table if exists "id_created_test"; [] +--- PASS: TestSavepoint (0.41s) === RUN TestMultiple -2025/11/08 15:25:28 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:28.396605 drop table if exists "invoice_test"; [] -gorptest: 15:25:28.396835 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:28.396862 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:28.396879 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:28.396899 drop table if exists "person_test"; [] -gorptest: 15:25:28.396916 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:28.396937 drop table if exists "id_created_test"; [] -gorptest: 15:25:28.396953 drop table if exists "type_conv_test"; [] -gorptest: 15:25:28.396972 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:28.396989 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:28.397010 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:28.397026 drop table if exists "time_test"; [] -gorptest: 15:25:28.397052 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:28.402863 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:28.414779 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:28.426961 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:28.440591 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:28.453451 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:28.464591 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:28.476695 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:28.488824 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:28.501403 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:28.512575 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:28.552940 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:28.563937 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:100 2:200 3:"a" 4:0 5:false] -gorptest: 15:25:28.568922 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:100 2:200 3:"b" 4:0 5:true] -gorptest: 15:25:28.574643 update "invoice_test" set "Created"=?, "Updated"=?, "Memo"=?, "PersonId"=?, "IsPaid"=? where "Id"=?; [1:100 2:200 3:"c" 4:0 5:false 6:1] -gorptest: 15:25:28.579326 update "invoice_test" set "Created"=?, "Updated"=?, "Memo"=?, "PersonId"=?, "IsPaid"=? where "Id"=?; [1:100 2:200 3:"d" 4:0 5:true 6:2] -gorptest: 15:25:28.583973 delete from "invoice_test" where "Id"=?; [1:1] -gorptest: 15:25:28.588468 delete from "invoice_test" where "Id"=?; [1:2] -gorptest: 15:25:28.593183 drop table if exists "invoice_test"; [] -gorptest: 15:25:28.598360 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:28.603671 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:28.610829 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:28.622826 drop table if exists "person_test"; [] -gorptest: 15:25:28.633049 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:28.642945 drop table if exists "id_created_test"; [] -gorptest: 15:25:28.653111 drop table if exists "type_conv_test"; [] -gorptest: 15:25:28.662916 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:28.673103 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:28.683081 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:28.693496 drop table if exists "time_test"; [] -gorptest: 15:25:28.702879 drop table if exists "id_created_test"; [] ---- PASS: TestMultiple (0.31s) +2024/10/06 09:04:01 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:01.226487 drop table if exists "invoice_test"; [] +gorptest: 09:04:01.226768 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:01.226806 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:01.226833 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:01.226857 drop table if exists "person_test"; [] +gorptest: 09:04:01.226880 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:01.226902 drop table if exists "id_created_test"; [] +gorptest: 09:04:01.226936 drop table if exists "type_conv_test"; [] +gorptest: 09:04:01.226962 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:01.226985 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:01.227011 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:01.227035 drop table if exists "time_test"; [] +gorptest: 09:04:01.227070 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:01.240255 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:01.249225 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:01.255207 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:01.261193 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:01.267766 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:01.275667 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:01.282703 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:01.290660 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:01.300135 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:01.315547 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:01.331661 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:01.351675 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:100 2:200 3:"a" 4:0 5:false] +gorptest: 09:04:01.367720 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:100 2:200 3:"b" 4:0 5:true] +gorptest: 09:04:01.383663 update "invoice_test" set "Created"=?, "Updated"=?, "Memo"=?, "PersonId"=?, "IsPaid"=? where "Id"=?; [1:100 2:200 3:"c" 4:0 5:false 6:1] +gorptest: 09:04:01.836525 update "invoice_test" set "Created"=?, "Updated"=?, "Memo"=?, "PersonId"=?, "IsPaid"=? where "Id"=?; [1:100 2:200 3:"d" 4:0 5:true 6:2] +gorptest: 09:04:02.561314 delete from "invoice_test" where "Id"=?; [1:1] +gorptest: 09:04:02.589148 delete from "invoice_test" where "Id"=?; [1:2] +gorptest: 09:04:02.594885 drop table if exists "invoice_test"; [] +gorptest: 09:04:02.600128 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:02.605101 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:02.638274 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:02.701352 drop table if exists "person_test"; [] +gorptest: 09:04:02.709009 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:02.797042 drop table if exists "id_created_test"; [] +gorptest: 09:04:02.803165 drop table if exists "type_conv_test"; [] +gorptest: 09:04:02.810713 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:02.816111 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:02.821154 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:02.826357 drop table if exists "time_test"; [] +gorptest: 09:04:02.831474 drop table if exists "id_created_test"; [] +--- PASS: TestMultiple (1.61s) === RUN TestCrud -2025/11/08 15:25:28 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:28.703161 drop table if exists "invoice_test"; [] -gorptest: 15:25:28.703370 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:28.703394 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:28.703411 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:28.703427 drop table if exists "person_test"; [] -gorptest: 15:25:28.703443 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:28.703459 drop table if exists "id_created_test"; [] -gorptest: 15:25:28.703476 drop table if exists "type_conv_test"; [] -gorptest: 15:25:28.703495 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:28.703511 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:28.703527 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:28.703544 drop table if exists "time_test"; [] -gorptest: 15:25:28.703575 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:28.712602 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:28.722631 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:28.733009 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:28.745552 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:28.755008 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:28.765047 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:28.775070 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:28.787227 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:28.795150 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:28.804995 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:28.814625 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:28.823508 delete from invoice_test [] -gorptest: 15:25:28.832885 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:100 2:200 3:"first order" 4:0 5:true] -gorptest: 15:25:28.845428 select "Id","Created","Updated","Memo","PersonId","IsPaid" from "invoice_test" where "Id"=?; [1:1] -gorptest: 15:25:28.845536 update "invoice_test" set "Created"=?, "Updated"=?, "Memo"=?, "PersonId"=?, "IsPaid"=? where "Id"=?; [1:994316392160940407 2:9100891660806173417 3:"random 8433106425643376443" 4:0 5:true 6:1] -gorptest: 15:25:28.854645 select "Id","Created","Updated","Memo","PersonId","IsPaid" from "invoice_test" where "Id"=?; [1:1] -gorptest: 15:25:28.854718 select * from invoice_test [] -gorptest: 15:25:28.854810 delete from "invoice_test" where "Id"=?; [1:1] -gorptest: 15:25:28.864773 select "Id","Created","Updated","Memo","PersonId","IsPaid" from "invoice_test" where "Id"=?; [1:1] -gorptest: 15:25:28.864841 delete from invoice_tag_test [] -gorptest: 15:25:28.874810 insert into "invoice_tag_test" ("myid","myCreated","date_updated","Memo","person_id","is_Paid") values (null,?,?,?,?,?); [1:300 2:400 3:"some order" 4:33 5:false] -gorptest: 15:25:28.887658 select "myid","myCreated","date_updated","Memo","person_id","is_Paid" from "invoice_tag_test" where "myid"=?; [1:1] -gorptest: 15:25:28.887750 update "invoice_tag_test" set "myCreated"=?, "date_updated"=?, "Memo"=?, "person_id"=?, "is_Paid"=? where "myid"=?; [1:2911793649596769932 2:4955108259037664688 3:"random 1957105318353519797" 4:33 5:false 6:1] -gorptest: 15:25:28.896790 select "myid","myCreated","date_updated","Memo","person_id","is_Paid" from "invoice_tag_test" where "myid"=?; [1:1] -gorptest: 15:25:28.896886 select * from invoice_tag_test [] -gorptest: 15:25:28.896951 delete from "invoice_tag_test" where "myid"=?; [1:1] -gorptest: 15:25:28.907006 select "myid","myCreated","date_updated","Memo","person_id","is_Paid" from "invoice_tag_test" where "myid"=?; [1:1] -gorptest: 15:25:28.907075 delete from alias_trans_field_test [] -gorptest: 15:25:28.917374 insert into "alias_trans_field_test" ("id","bar") values (null,?); [1:"some bar"] -gorptest: 15:25:28.929350 select "id","bar" from "alias_trans_field_test" where "id"=?; [1:1] -gorptest: 15:25:28.929433 update "alias_trans_field_test" set "bar"=? where "id"=?; [1:"random 5562761461518795181" 2:1] -gorptest: 15:25:28.938847 select "id","bar" from "alias_trans_field_test" where "id"=?; [1:1] -gorptest: 15:25:28.938939 select * from alias_trans_field_test [] -gorptest: 15:25:28.938991 delete from "alias_trans_field_test" where "id"=?; [1:1] -gorptest: 15:25:28.949287 select "id","bar" from "alias_trans_field_test" where "id"=?; [1:1] -gorptest: 15:25:28.949355 drop table if exists "invoice_test"; [] -gorptest: 15:25:28.961520 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:28.974900 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:28.988978 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:29.003369 drop table if exists "person_test"; [] -gorptest: 15:25:29.014444 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:29.026561 drop table if exists "id_created_test"; [] -gorptest: 15:25:29.039445 drop table if exists "type_conv_test"; [] -gorptest: 15:25:29.051215 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:29.063286 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:29.074908 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:29.087093 drop table if exists "time_test"; [] -gorptest: 15:25:29.097273 drop table if exists "id_created_test"; [] ---- PASS: TestCrud (0.39s) +2024/10/06 09:04:02 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:02.831712 drop table if exists "invoice_test"; [] +gorptest: 09:04:02.832004 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:02.832050 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:02.832073 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:02.832099 drop table if exists "person_test"; [] +gorptest: 09:04:02.832121 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:02.832142 drop table if exists "id_created_test"; [] +gorptest: 09:04:02.832164 drop table if exists "type_conv_test"; [] +gorptest: 09:04:02.832190 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:02.832210 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:02.832230 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:02.832280 drop table if exists "time_test"; [] +gorptest: 09:04:02.832324 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:02.837121 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:02.844449 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:02.850075 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:02.855673 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:02.862578 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:02.868003 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:02.873772 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:02.879191 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:02.883775 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:02.891038 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:02.896152 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:02.902318 delete from invoice_test [] +gorptest: 09:04:02.908033 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:100 2:200 3:"first order" 4:0 5:true] +gorptest: 09:04:02.912953 select "Id","Created","Updated","Memo","PersonId","IsPaid" from "invoice_test" where "Id"=?; [1:1] +gorptest: 09:04:02.913108 update "invoice_test" set "Created"=?, "Updated"=?, "Memo"=?, "PersonId"=?, "IsPaid"=? where "Id"=?; [1:7209162153713014933 2:2429669743280775364 3:"random 8149509184687634817" 4:0 5:true 6:1] +gorptest: 09:04:02.919446 select "Id","Created","Updated","Memo","PersonId","IsPaid" from "invoice_test" where "Id"=?; [1:1] +gorptest: 09:04:02.919585 select * from invoice_test [] +gorptest: 09:04:02.919682 delete from "invoice_test" where "Id"=?; [1:1] +gorptest: 09:04:02.929787 select "Id","Created","Updated","Memo","PersonId","IsPaid" from "invoice_test" where "Id"=?; [1:1] +gorptest: 09:04:02.929876 delete from invoice_tag_test [] +gorptest: 09:04:02.938983 insert into "invoice_tag_test" ("myid","myCreated","date_updated","Memo","person_id","is_Paid") values (null,?,?,?,?,?); [1:300 2:400 3:"some order" 4:33 5:false] +gorptest: 09:04:02.957448 select "myid","myCreated","date_updated","Memo","person_id","is_Paid" from "invoice_tag_test" where "myid"=?; [1:1] +gorptest: 09:04:02.957626 update "invoice_tag_test" set "myCreated"=?, "date_updated"=?, "Memo"=?, "person_id"=?, "is_Paid"=? where "myid"=?; [1:2222805466655920836 2:682457033863225469 3:"random 7096390460747777255" 4:33 5:false 6:1] +gorptest: 09:04:02.974799 select "myid","myCreated","date_updated","Memo","person_id","is_Paid" from "invoice_tag_test" where "myid"=?; [1:1] +gorptest: 09:04:02.974954 select * from invoice_tag_test [] +gorptest: 09:04:02.975063 delete from "invoice_tag_test" where "myid"=?; [1:1] +gorptest: 09:04:02.986861 select "myid","myCreated","date_updated","Memo","person_id","is_Paid" from "invoice_tag_test" where "myid"=?; [1:1] +gorptest: 09:04:02.987012 delete from alias_trans_field_test [] +gorptest: 09:04:02.995354 insert into "alias_trans_field_test" ("id","bar") values (null,?); [1:"some bar"] +gorptest: 09:04:03.009258 select "id","bar" from "alias_trans_field_test" where "id"=?; [1:1] +gorptest: 09:04:03.009493 update "alias_trans_field_test" set "bar"=? where "id"=?; [1:"random 3307216712273019652" 2:1] +gorptest: 09:04:03.017851 select "id","bar" from "alias_trans_field_test" where "id"=?; [1:1] +gorptest: 09:04:03.017988 select * from alias_trans_field_test [] +gorptest: 09:04:03.018089 delete from "alias_trans_field_test" where "id"=?; [1:1] +gorptest: 09:04:03.030718 select "id","bar" from "alias_trans_field_test" where "id"=?; [1:1] +gorptest: 09:04:03.030845 drop table if exists "invoice_test"; [] +gorptest: 09:04:03.040657 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:03.055913 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:03.071005 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:03.081043 drop table if exists "person_test"; [] +gorptest: 09:04:03.142662 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:03.155667 drop table if exists "id_created_test"; [] +gorptest: 09:04:03.167622 drop table if exists "type_conv_test"; [] +gorptest: 09:04:03.223638 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:03.247635 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:03.263615 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:03.279619 drop table if exists "time_test"; [] +gorptest: 09:04:03.335604 drop table if exists "id_created_test"; [] +--- PASS: TestCrud (0.50s) === RUN TestWithIgnoredColumn -2025/11/08 15:25:29 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:29.097512 drop table if exists "invoice_test"; [] -gorptest: 15:25:29.097694 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:29.097718 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:29.097734 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:29.097755 drop table if exists "person_test"; [] -gorptest: 15:25:29.097771 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:29.097789 drop table if exists "id_created_test"; [] -gorptest: 15:25:29.097805 drop table if exists "type_conv_test"; [] -gorptest: 15:25:29.097823 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:29.097839 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:29.097858 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:29.097874 drop table if exists "time_test"; [] -gorptest: 15:25:29.097900 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:29.106716 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:29.118996 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:29.130914 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:29.144803 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:29.157157 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:29.169172 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:29.181401 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:29.193268 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:29.204519 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:29.217088 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:29.228926 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:29.238777 insert into "ignored_column_test" ("Id","Created") values (null,?); [1:1] -gorptest: 15:25:29.251254 select "Id","Created" from "ignored_column_test" where "Id"=?; [1:1] -gorptest: 15:25:29.251338 delete from "ignored_column_test" where "Id"=?; [1:1] -gorptest: 15:25:29.260714 select "Id","Created" from "ignored_column_test" where "Id"=?; [1:1] -gorptest: 15:25:29.260807 drop table if exists "invoice_test"; [] -gorptest: 15:25:29.268638 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:29.279273 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:29.291067 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:29.301286 drop table if exists "person_test"; [] -gorptest: 15:25:29.311341 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:29.320608 drop table if exists "id_created_test"; [] -gorptest: 15:25:29.330652 drop table if exists "type_conv_test"; [] -gorptest: 15:25:29.340771 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:29.350880 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:29.360868 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:29.371259 drop table if exists "time_test"; [] -gorptest: 15:25:29.381385 drop table if exists "id_created_test"; [] ---- PASS: TestWithIgnoredColumn (0.28s) +2024/10/06 09:04:03 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:03.335876 drop table if exists "invoice_test"; [] +gorptest: 09:04:03.336103 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:03.336127 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:03.336144 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:03.336161 drop table if exists "person_test"; [] +gorptest: 09:04:03.336177 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:03.336193 drop table if exists "id_created_test"; [] +gorptest: 09:04:03.336207 drop table if exists "type_conv_test"; [] +gorptest: 09:04:03.336223 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:03.336237 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:03.336251 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:03.336265 drop table if exists "time_test"; [] +gorptest: 09:04:03.336287 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:03.355607 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:03.371609 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:03.391598 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:03.403583 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:03.415579 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:03.427607 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:03.439573 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:03.454217 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:03.468838 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:03.481010 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:03.491214 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:03.497304 insert into "ignored_column_test" ("Id","Created") values (null,?); [1:1] +gorptest: 09:04:03.506622 select "Id","Created" from "ignored_column_test" where "Id"=?; [1:1] +gorptest: 09:04:03.506769 delete from "ignored_column_test" where "Id"=?; [1:1] +gorptest: 09:04:03.513545 select "Id","Created" from "ignored_column_test" where "Id"=?; [1:1] +gorptest: 09:04:03.513631 drop table if exists "invoice_test"; [] +gorptest: 09:04:03.527615 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:03.539320 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:03.555608 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:03.573921 drop table if exists "person_test"; [] +gorptest: 09:04:03.584257 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:03.595605 drop table if exists "id_created_test"; [] +gorptest: 09:04:03.607604 drop table if exists "type_conv_test"; [] +gorptest: 09:04:03.632049 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:03.651730 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:03.667629 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:03.683864 drop table if exists "time_test"; [] +gorptest: 09:04:03.703599 drop table if exists "id_created_test"; [] +--- PASS: TestWithIgnoredColumn (0.37s) === RUN TestTypeConversionExample -2025/11/08 15:25:29 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:29.381596 drop table if exists "invoice_test"; [] -gorptest: 15:25:29.381776 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:29.381801 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:29.381817 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:29.381836 drop table if exists "person_test"; [] -gorptest: 15:25:29.381852 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:29.381869 drop table if exists "id_created_test"; [] -gorptest: 15:25:29.381885 drop table if exists "type_conv_test"; [] -gorptest: 15:25:29.381903 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:29.381920 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:29.381935 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:29.381951 drop table if exists "time_test"; [] -gorptest: 15:25:29.381976 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:29.391606 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:29.400769 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:29.410605 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:29.423394 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:29.432526 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:29.442660 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:29.452951 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:29.463322 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:29.473334 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:29.482653 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:29.492737 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:29.500833 insert into "type_conv_test" ("Id","PersonJSON","Name") values (null,?,?); [1:"{\"Id\":0,\"Created\":0,\"Updated\":0,\"FName\":\"Bob\",\"LName\":\"Smith\",\"Version\":0}" 2:"hi"] -gorptest: 15:25:29.512680 select "Id","PersonJSON","Name" from "type_conv_test" where "Id"=?; [1:1] -gorptest: 15:25:29.512867 update "type_conv_test" set "PersonJSON"=?, "Name"=? where "Id"=?; [1:"{\"Id\":0,\"Created\":0,\"Updated\":0,\"FName\":\"Jane\",\"LName\":\"Doe\",\"Version\":0}" 2:"hi2" 3:1] -gorptest: 15:25:29.523602 select "Id","PersonJSON","Name" from "type_conv_test" where "Id"=?; [1:1] -gorptest: 15:25:29.523700 delete from "type_conv_test" where "Id"=?; [1:1] -gorptest: 15:25:29.532653 drop table if exists "invoice_test"; [] -gorptest: 15:25:29.543339 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:29.555178 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:29.566820 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:29.580636 drop table if exists "person_test"; [] -gorptest: 15:25:29.593080 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:29.605459 drop table if exists "id_created_test"; [] -gorptest: 15:25:29.617556 drop table if exists "type_conv_test"; [] -gorptest: 15:25:29.630858 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:29.642721 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:29.654858 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:29.666957 drop table if exists "time_test"; [] -gorptest: 15:25:29.676975 drop table if exists "id_created_test"; [] ---- PASS: TestTypeConversionExample (0.30s) +2024/10/06 09:04:03 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:03.703856 drop table if exists "invoice_test"; [] +gorptest: 09:04:03.704085 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:03.704109 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:03.704127 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:03.704143 drop table if exists "person_test"; [] +gorptest: 09:04:03.704159 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:03.704173 drop table if exists "id_created_test"; [] +gorptest: 09:04:03.704187 drop table if exists "type_conv_test"; [] +gorptest: 09:04:03.704203 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:03.704219 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:03.704235 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:03.704250 drop table if exists "time_test"; [] +gorptest: 09:04:03.704273 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:03.723616 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:03.747614 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:03.771611 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:03.791603 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:03.803865 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:03.831618 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:03.851587 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:03.867612 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:03.883576 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:03.899593 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:03.915575 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:03.935611 insert into "type_conv_test" ("Id","PersonJSON","Name") values (null,?,?); [1:"{\"Id\":0,\"Created\":0,\"Updated\":0,\"FName\":\"Bob\",\"LName\":\"Smith\",\"Version\":0}" 2:"hi"] +gorptest: 09:04:03.955568 select "Id","PersonJSON","Name" from "type_conv_test" where "Id"=?; [1:1] +gorptest: 09:04:03.955694 update "type_conv_test" set "PersonJSON"=?, "Name"=? where "Id"=?; [1:"{\"Id\":0,\"Created\":0,\"Updated\":0,\"FName\":\"Jane\",\"LName\":\"Doe\",\"Version\":0}" 2:"hi2" 3:1] +gorptest: 09:04:03.971554 select "Id","PersonJSON","Name" from "type_conv_test" where "Id"=?; [1:1] +gorptest: 09:04:03.971645 delete from "type_conv_test" where "Id"=?; [1:1] +gorptest: 09:04:03.991562 drop table if exists "invoice_test"; [] +gorptest: 09:04:04.007574 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:04.031675 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:04.050715 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:04.063643 drop table if exists "person_test"; [] +gorptest: 09:04:04.075549 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:04.083630 drop table if exists "id_created_test"; [] +gorptest: 09:04:04.093075 drop table if exists "type_conv_test"; [] +gorptest: 09:04:04.115619 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:04.128003 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:04.139596 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:04.151616 drop table if exists "time_test"; [] +gorptest: 09:04:04.159732 drop table if exists "id_created_test"; [] +--- PASS: TestTypeConversionExample (0.46s) === RUN TestWithEmbeddedStruct -2025/11/08 15:25:29 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:29.677212 drop table if exists "invoice_test"; [] -gorptest: 15:25:29.677400 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:29.677425 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:29.677442 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:29.677459 drop table if exists "person_test"; [] -gorptest: 15:25:29.677478 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:29.677497 drop table if exists "id_created_test"; [] -gorptest: 15:25:29.677513 drop table if exists "type_conv_test"; [] -gorptest: 15:25:29.677535 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:29.677553 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:29.677569 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:29.677586 drop table if exists "time_test"; [] -gorptest: 15:25:29.677610 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:29.686779 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:29.698747 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:29.710640 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:29.725058 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:29.746647 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:29.752067 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:29.761202 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:29.772698 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:29.785096 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:29.796780 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:29.808654 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:29.819010 insert into "embedded_struct_test" ("Id","FirstName","LastName") values (null,?,?); [1:"Alice" 2:"Smith"] -gorptest: 15:25:29.830872 select "Id","FirstName","LastName" from "embedded_struct_test" where "Id"=?; [1:1] -gorptest: 15:25:29.830983 update "embedded_struct_test" set "FirstName"=?, "LastName"=? where "Id"=?; [1:"Bob" 2:"Smith" 3:1] -gorptest: 15:25:29.840588 select "Id","FirstName","LastName" from "embedded_struct_test" where "Id"=?; [1:1] -gorptest: 15:25:29.840659 select * from embedded_struct_test [] -gorptest: 15:25:29.840709 drop table if exists "invoice_test"; [] -gorptest: 15:25:29.848949 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:29.858842 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:29.869036 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:29.881016 drop table if exists "person_test"; [] -gorptest: 15:25:29.891056 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:29.901249 drop table if exists "id_created_test"; [] -gorptest: 15:25:29.911047 drop table if exists "type_conv_test"; [] -gorptest: 15:25:29.921375 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:29.931202 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:29.941697 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:29.950901 drop table if exists "time_test"; [] -gorptest: 15:25:29.961158 drop table if exists "id_created_test"; [] ---- PASS: TestWithEmbeddedStruct (0.28s) +2024/10/06 09:04:04 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:04.159963 drop table if exists "invoice_test"; [] +gorptest: 09:04:04.160172 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:04.160195 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:04.160212 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:04.160227 drop table if exists "person_test"; [] +gorptest: 09:04:04.160243 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:04.160258 drop table if exists "id_created_test"; [] +gorptest: 09:04:04.160273 drop table if exists "type_conv_test"; [] +gorptest: 09:04:04.160288 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:04.160303 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:04.160317 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:04.160337 drop table if exists "time_test"; [] +gorptest: 09:04:04.160376 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:04.171929 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:04.183616 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:04.195613 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:04.211554 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:04.223537 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:04.239541 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:04.251542 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:04.263543 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:04.277559 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:04.287549 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:04.299554 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:04.312079 insert into "embedded_struct_test" ("Id","FirstName","LastName") values (null,?,?); [1:"Alice" 2:"Smith"] +gorptest: 09:04:04.327566 select "Id","FirstName","LastName" from "embedded_struct_test" where "Id"=?; [1:1] +gorptest: 09:04:04.327685 update "embedded_struct_test" set "FirstName"=?, "LastName"=? where "Id"=?; [1:"Bob" 2:"Smith" 3:1] +gorptest: 09:04:04.339554 select "Id","FirstName","LastName" from "embedded_struct_test" where "Id"=?; [1:1] +gorptest: 09:04:04.339627 select * from embedded_struct_test [] +gorptest: 09:04:04.339688 drop table if exists "invoice_test"; [] +gorptest: 09:04:04.351540 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:04.361617 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:04.383657 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:04.395618 drop table if exists "person_test"; [] +gorptest: 09:04:04.407615 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:04.422189 drop table if exists "id_created_test"; [] +gorptest: 09:04:04.428291 drop table if exists "type_conv_test"; [] +gorptest: 09:04:04.434084 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:04.441262 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:04.479613 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:04.515961 drop table if exists "time_test"; [] +gorptest: 09:04:04.527727 drop table if exists "id_created_test"; [] +--- PASS: TestWithEmbeddedStruct (0.37s) === RUN TestWithEmbeddedStructBeforeAutoincr -2025/11/08 15:25:29 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:29.961356 drop table if exists "invoice_test"; [] -gorptest: 15:25:29.961534 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:29.961558 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:29.961575 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:29.961594 drop table if exists "person_test"; [] -gorptest: 15:25:29.961610 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:29.961629 drop table if exists "id_created_test"; [] -gorptest: 15:25:29.961644 drop table if exists "type_conv_test"; [] -gorptest: 15:25:29.961663 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:29.961679 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:29.961698 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:29.961714 drop table if exists "time_test"; [] -gorptest: 15:25:29.961739 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:29.971713 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:29.980969 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:29.991107 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:30.003257 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:30.012669 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:30.023435 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:30.033494 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:30.042705 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:30.053493 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:30.062393 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:30.072868 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:30.081087 insert into "embedded_struct_before_autoincr_test" ("FirstName","LastName","Id") values (?,?,null); [1:"Alice" 2:"Smith"] -gorptest: 15:25:30.092773 drop table if exists "invoice_test"; [] -gorptest: 15:25:30.103141 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:30.115485 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:30.126723 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:30.141577 drop table if exists "person_test"; [] -gorptest: 15:25:30.152922 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:30.165515 drop table if exists "id_created_test"; [] -gorptest: 15:25:30.177633 drop table if exists "type_conv_test"; [] -gorptest: 15:25:30.189371 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:30.200689 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:30.215162 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:30.226838 drop table if exists "time_test"; [] -gorptest: 15:25:30.236765 drop table if exists "id_created_test"; [] ---- PASS: TestWithEmbeddedStructBeforeAutoincr (0.28s) +2024/10/06 09:04:04 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:04.527984 drop table if exists "invoice_test"; [] +gorptest: 09:04:04.528261 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:04.528290 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:04.528311 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:04.528333 drop table if exists "person_test"; [] +gorptest: 09:04:04.528404 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:04.528449 drop table if exists "id_created_test"; [] +gorptest: 09:04:04.528484 drop table if exists "type_conv_test"; [] +gorptest: 09:04:04.528518 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:04.528545 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:04.528567 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:04.528588 drop table if exists "time_test"; [] +gorptest: 09:04:04.528648 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:04.600317 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:04.653262 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:04.739548 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:04.749373 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:04.757472 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:04.763179 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:04.769341 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:04.775793 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:04.782441 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:04.791910 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:04.841910 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:04.851108 insert into "embedded_struct_before_autoincr_test" ("FirstName","LastName","Id") values (?,?,null); [1:"Alice" 2:"Smith"] +gorptest: 09:04:04.856947 drop table if exists "invoice_test"; [] +gorptest: 09:04:04.862472 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:04.868245 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:04.876426 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:04.897588 drop table if exists "person_test"; [] +gorptest: 09:04:04.906804 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:04.919596 drop table if exists "id_created_test"; [] +gorptest: 09:04:04.931564 drop table if exists "type_conv_test"; [] +gorptest: 09:04:04.945766 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:04.959600 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:04.971596 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:04.981482 drop table if exists "time_test"; [] +gorptest: 09:04:04.987410 drop table if exists "id_created_test"; [] +--- PASS: TestWithEmbeddedStructBeforeAutoincr (0.46s) === RUN TestWithEmbeddedAutoincr -2025/11/08 15:25:30 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:30.237014 drop table if exists "invoice_test"; [] -gorptest: 15:25:30.237193 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:30.237217 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:30.237234 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:30.237251 drop table if exists "person_test"; [] -gorptest: 15:25:30.237267 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:30.237286 drop table if exists "id_created_test"; [] -gorptest: 15:25:30.237302 drop table if exists "type_conv_test"; [] -gorptest: 15:25:30.237321 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:30.237337 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:30.237353 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:30.237370 drop table if exists "time_test"; [] -gorptest: 15:25:30.237395 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:30.246747 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:30.259171 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:30.270686 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:30.284971 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:30.297402 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:30.309260 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:30.361659 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:30.368040 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:30.373410 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:30.378438 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:30.383655 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:30.388674 insert into "embedded_autoincr_test" ("Id","FirstName","LastName","MiddleName") values (null,?,?,?); [1:"Alice" 2:"Smith" 3:"Rose"] -gorptest: 15:25:30.394169 drop table if exists "invoice_test"; [] -gorptest: 15:25:30.399292 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:30.409385 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:30.419473 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:30.431549 drop table if exists "person_test"; [] -gorptest: 15:25:30.440573 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:30.450896 drop table if exists "id_created_test"; [] -gorptest: 15:25:30.460901 drop table if exists "type_conv_test"; [] -gorptest: 15:25:30.470952 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:30.481148 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:30.490587 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:30.500943 drop table if exists "time_test"; [] -gorptest: 15:25:30.511021 drop table if exists "id_created_test"; [] ---- PASS: TestWithEmbeddedAutoincr (0.27s) +2024/10/06 09:04:04 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:04.987681 drop table if exists "invoice_test"; [] +gorptest: 09:04:04.987916 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:04.987958 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:04.987980 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:04.987999 drop table if exists "person_test"; [] +gorptest: 09:04:04.988017 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:04.988034 drop table if exists "id_created_test"; [] +gorptest: 09:04:04.988051 drop table if exists "type_conv_test"; [] +gorptest: 09:04:04.988069 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:04.988086 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:04.988104 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:04.988121 drop table if exists "time_test"; [] +gorptest: 09:04:04.988147 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:04.993847 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:05.011643 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:05.023392 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:05.035634 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:05.045096 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:05.052765 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:05.075670 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:05.087647 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:05.103585 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:05.119594 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:05.135622 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:05.147614 insert into "embedded_autoincr_test" ("Id","FirstName","LastName","MiddleName") values (null,?,?,?); [1:"Alice" 2:"Smith" 3:"Rose"] +gorptest: 09:04:05.163565 drop table if exists "invoice_test"; [] +gorptest: 09:04:05.175564 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:05.255013 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:05.261916 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:05.269721 drop table if exists "person_test"; [] +gorptest: 09:04:05.274534 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:05.279553 drop table if exists "id_created_test"; [] +gorptest: 09:04:05.284347 drop table if exists "type_conv_test"; [] +gorptest: 09:04:05.289136 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:05.295654 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:05.299931 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:05.304219 drop table if exists "time_test"; [] +gorptest: 09:04:05.308885 drop table if exists "id_created_test"; [] +--- PASS: TestWithEmbeddedAutoincr (0.32s) === RUN TestSelectVal -gorptest: 15:25:30.511247 create table "TableWithNull" ("Id" integer not null primary key, "Str" varchar(255), "Int64" integer, "Float64" real, "Bool" integer, "Bytes" blob) ; [] -gorptest: 15:25:30.521104 insert into "TableWithNull" ("Id","Str","Int64","Float64","Bool","Bytes") values (?,?,?,?,?,?); [1:0 2:"abc" 3:78 4:32.2 5:true 6:[104 105]] -gorptest: 15:25:30.530993 select Int64 from TableWithNull where Str='abc' [] -gorptest: 15:25:30.531066 select count(*) from TableWithNull [] -gorptest: 15:25:30.531102 select count(*) from TableWithNull where Str=? [1:"asdfasdf"] -gorptest: 15:25:30.531135 select Int64 from TableWithNull where Str='notfound' [] -gorptest: 15:25:30.531162 select Int64 from TableWithNull where Str='abc' [] -gorptest: 15:25:30.531188 select Float64 from TableWithNull where Str='abc' [] -gorptest: 15:25:30.531214 select min(Float64) from TableWithNull [] -gorptest: 15:25:30.531247 select count(*) from TableWithNull where Str=? [1:"asdfasdf"] -gorptest: 15:25:30.531278 select Float64 from TableWithNull where Str='notfound' [] -gorptest: 15:25:30.531304 select Float64 from TableWithNull where Str='abc' [] -gorptest: 15:25:30.531330 select Str from TableWithNull where Int64=? [1:78] -gorptest: 15:25:30.531359 select Str from TableWithNull where Str='asdfasdf' [] -gorptest: 15:25:30.531384 select Str from TableWithNull where Int64=? [1:78] -gorptest: 15:25:30.531407 select Str from TableWithNull where Str='asdfasdf' [] -gorptest: 15:25:30.531440 select Int64 from TableWithNull where Str=? [1:"abc"] -gorptest: 15:25:30.531467 select Str from TableWithNull where Int64=? [1:78] -gorptest: 15:25:30.531494 drop table if exists "TableWithNull"; [] ---- PASS: TestSelectVal (0.03s) +gorptest: 09:04:05.309082 create table "TableWithNull" ("Id" integer not null primary key, "Str" varchar(255), "Int64" integer, "Float64" real, "Bool" integer, "Bytes" blob) ; [] +gorptest: 09:04:05.314603 insert into "TableWithNull" ("Id","Str","Int64","Float64","Bool","Bytes") values (?,?,?,?,?,?); [1:0 2:"abc" 3:78 4:32.2 5:true 6:[104 105]] +gorptest: 09:04:05.321618 select Int64 from TableWithNull where Str='abc' [] +gorptest: 09:04:05.321732 select count(*) from TableWithNull [] +gorptest: 09:04:05.321780 select count(*) from TableWithNull where Str=? [1:"asdfasdf"] +gorptest: 09:04:05.321828 select Int64 from TableWithNull where Str='notfound' [] +gorptest: 09:04:05.321869 select Int64 from TableWithNull where Str='abc' [] +gorptest: 09:04:05.321906 select Float64 from TableWithNull where Str='abc' [] +gorptest: 09:04:05.321942 select min(Float64) from TableWithNull [] +gorptest: 09:04:05.321987 select count(*) from TableWithNull where Str=? [1:"asdfasdf"] +gorptest: 09:04:05.322030 select Float64 from TableWithNull where Str='notfound' [] +gorptest: 09:04:05.322067 select Float64 from TableWithNull where Str='abc' [] +gorptest: 09:04:05.322104 select Str from TableWithNull where Int64=? [1:78] +gorptest: 09:04:05.322141 select Str from TableWithNull where Str='asdfasdf' [] +gorptest: 09:04:05.322201 select Str from TableWithNull where Int64=? [1:78] +gorptest: 09:04:05.322238 select Str from TableWithNull where Str='asdfasdf' [] +gorptest: 09:04:05.322305 select Int64 from TableWithNull where Str=? [1:"abc"] +gorptest: 09:04:05.322364 select Str from TableWithNull where Int64=? [1:78] +gorptest: 09:04:05.322410 drop table if exists "TableWithNull"; [] +--- PASS: TestSelectVal (0.02s) === RUN TestVersionMultipleRows -2025/11/08 15:25:30 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:30.540759 drop table if exists "invoice_test"; [] -gorptest: 15:25:30.540939 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:30.540964 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:30.540981 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:30.540998 drop table if exists "person_test"; [] -gorptest: 15:25:30.541015 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:30.541034 drop table if exists "id_created_test"; [] -gorptest: 15:25:30.541050 drop table if exists "type_conv_test"; [] -gorptest: 15:25:30.541066 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:30.541082 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:30.541099 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:30.541118 drop table if exists "time_test"; [] -gorptest: 15:25:30.541140 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:30.551549 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:30.560952 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:30.571158 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:30.583768 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:30.592724 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:30.603118 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:30.613466 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:30.622458 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:30.633393 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:30.642773 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:30.652693 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:30.660835 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1762615530660818188 2:1762615530660818188 3:"Bob" 4:"Smith" 5:1] -gorptest: 15:25:30.672598 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1762615530672585229 2:1762615530672585229 3:"Jane" 4:"Smith" 5:1] -gorptest: 15:25:30.685124 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1762615530685084057 2:1762615530685084057 3:"Mike" 4:"Smith" 5:1] -gorptest: 15:25:30.696571 drop table if exists "invoice_test"; [] -gorptest: 15:25:30.707184 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:30.719269 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:30.730759 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:30.744961 drop table if exists "person_test"; [] -gorptest: 15:25:30.758987 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:30.771095 drop table if exists "id_created_test"; [] -gorptest: 15:25:30.783013 drop table if exists "type_conv_test"; [] -gorptest: 15:25:30.795115 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:30.806847 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:30.819280 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:30.831539 drop table if exists "time_test"; [] -gorptest: 15:25:30.840739 drop table if exists "id_created_test"; [] ---- PASS: TestVersionMultipleRows (0.30s) +2024/10/06 09:04:05 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:05.327234 drop table if exists "invoice_test"; [] +gorptest: 09:04:05.327446 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:05.327511 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:05.327532 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:05.327550 drop table if exists "person_test"; [] +gorptest: 09:04:05.327567 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:05.327584 drop table if exists "id_created_test"; [] +gorptest: 09:04:05.327601 drop table if exists "type_conv_test"; [] +gorptest: 09:04:05.327618 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:05.327636 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:05.327654 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:05.327671 drop table if exists "time_test"; [] +gorptest: 09:04:05.327702 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:05.334127 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:05.338967 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:05.347725 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:05.352538 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:05.357166 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:05.372670 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:05.388751 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:05.400016 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:05.408252 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:05.415553 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:05.424849 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:05.433235 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1728205445433206012 2:1728205445433206012 3:"Bob" 4:"Smith" 5:1] +gorptest: 09:04:05.444691 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1728205445444665797 2:1728205445444665797 3:"Jane" 4:"Smith" 5:1] +gorptest: 09:04:05.578853 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1728205445578826331 2:1728205445578826331 3:"Mike" 4:"Smith" 5:1] +gorptest: 09:04:05.585166 drop table if exists "invoice_test"; [] +gorptest: 09:04:05.594262 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:05.601037 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:05.611882 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:05.627623 drop table if exists "person_test"; [] +gorptest: 09:04:05.639100 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:05.646049 drop table if exists "id_created_test"; [] +gorptest: 09:04:05.653855 drop table if exists "type_conv_test"; [] +gorptest: 09:04:05.666239 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:05.674512 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:05.681025 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:05.686143 drop table if exists "time_test"; [] +gorptest: 09:04:05.691247 drop table if exists "id_created_test"; [] +--- PASS: TestVersionMultipleRows (0.36s) === RUN TestWithStringPk -gorptest: 15:25:30.840895 create table string_pk_test (Id varchar(255), Name varchar(255)); [] -gorptest: 15:25:30.851434 insert into "string_pk_test" ("Id","Name") values (null,?); [1:"foo"] -gorptest: 15:25:30.858604 drop table if exists "string_pk_test"; [] ---- PASS: TestWithStringPk (0.03s) +gorptest: 09:04:05.691904 create table string_pk_test (Id varchar(255), Name varchar(255)); [] +gorptest: 09:04:05.697354 insert into "string_pk_test" ("Id","Name") values (null,?); [1:"foo"] +gorptest: 09:04:05.705066 drop table if exists "string_pk_test"; [] +--- PASS: TestWithStringPk (0.02s) === RUN TestSqlExecutorInterfaceSelects --- PASS: TestSqlExecutorInterfaceSelects (0.00s) === RUN TestWithTimeSelect -2025/11/08 15:25:30 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:30.869361 drop table if exists "invoice_test"; [] -gorptest: 15:25:30.869590 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:30.869619 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:30.869636 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:30.869655 drop table if exists "person_test"; [] -gorptest: 15:25:30.869672 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:30.869689 drop table if exists "id_created_test"; [] -gorptest: 15:25:30.869704 drop table if exists "type_conv_test"; [] -gorptest: 15:25:30.869723 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:30.869739 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:30.869759 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:30.869774 drop table if exists "time_test"; [] -gorptest: 15:25:30.869800 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:30.878784 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:30.891390 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:30.903390 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:30.916930 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:30.929468 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:30.941138 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:30.952994 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:30.964959 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:30.977159 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:30.989463 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:31.001484 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:31.011242 insert into "time_test" ("Id","Time") values (null,?); [1:2025-11-08 14:54:31.01119304 +0000 UTC] -gorptest: 15:25:31.023697 insert into "time_test" ("Id","Time") values (null,?); [1:2025-11-08 14:55:32.01119304 +0000 UTC] -gorptest: 15:25:31.034587 SELECT id FROM time_test WHERE Time < ? [1:2025-11-08 14:55:31.01119304 +0000 UTC] -gorptest: 15:25:31.034713 drop table if exists "invoice_test"; [] -gorptest: 15:25:31.042682 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:31.052895 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:31.063161 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:31.075285 drop table if exists "person_test"; [] -gorptest: 15:25:31.086768 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:31.094721 drop table if exists "id_created_test"; [] -gorptest: 15:25:31.104976 drop table if exists "type_conv_test"; [] -gorptest: 15:25:31.114716 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:31.124432 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:31.135131 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:31.144779 drop table if exists "time_test"; [] -gorptest: 15:25:31.154693 drop table if exists "id_created_test"; [] ---- PASS: TestWithTimeSelect (0.29s) +2024/10/06 09:04:05 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:05.710325 drop table if exists "invoice_test"; [] +gorptest: 09:04:05.710596 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:05.710626 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:05.710646 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:05.710667 drop table if exists "person_test"; [] +gorptest: 09:04:05.710686 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:05.710705 drop table if exists "id_created_test"; [] +gorptest: 09:04:05.710723 drop table if exists "type_conv_test"; [] +gorptest: 09:04:05.710741 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:05.710759 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:05.710777 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:05.710795 drop table if exists "time_test"; [] +gorptest: 09:04:05.710821 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:05.726486 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:05.737935 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:05.753658 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:05.767694 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:05.779015 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:05.799591 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:05.807002 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:05.823811 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:05.835690 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:05.847737 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:05.859088 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:05.869513 insert into "time_test" ("Id","Time") values (null,?); [1:2024-10-06 08:33:05.869492288 +0000 UTC] +gorptest: 09:04:05.933020 insert into "time_test" ("Id","Time") values (null,?); [1:2024-10-06 08:34:06.869492288 +0000 UTC] +gorptest: 09:04:05.940402 SELECT id FROM time_test WHERE Time < ? [1:2024-10-06 08:34:05.869492288 +0000 UTC] +gorptest: 09:04:05.940555 drop table if exists "invoice_test"; [] +gorptest: 09:04:05.945617 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:05.951155 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:05.956433 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:05.962426 drop table if exists "person_test"; [] +gorptest: 09:04:05.969347 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:05.974499 drop table if exists "id_created_test"; [] +gorptest: 09:04:05.981809 drop table if exists "type_conv_test"; [] +gorptest: 09:04:05.987101 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:05.994911 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:06.005496 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:06.019014 drop table if exists "time_test"; [] +gorptest: 09:04:06.033128 drop table if exists "id_created_test"; [] +--- PASS: TestWithTimeSelect (0.32s) === RUN TestInvoicePersonView -2025/11/08 15:25:31 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:31.154918 drop table if exists "invoice_test"; [] -gorptest: 15:25:31.155104 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:31.155132 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:31.155148 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:31.155167 drop table if exists "person_test"; [] -gorptest: 15:25:31.155183 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:31.155199 drop table if exists "id_created_test"; [] -gorptest: 15:25:31.155215 drop table if exists "type_conv_test"; [] -gorptest: 15:25:31.155231 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:31.155247 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:31.155265 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:31.155280 drop table if exists "time_test"; [] -gorptest: 15:25:31.155303 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:31.165426 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:31.175244 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:31.185246 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:31.197260 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:31.207364 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:31.216914 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:31.226803 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:31.236941 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:31.247164 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:31.257596 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:31.266682 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:31.275302 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1762615531275281493 2:1762615531275281493 3:"bob" 4:"smith" 5:1] -gorptest: 15:25:31.287290 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:0 2:0 3:"xmas order" 4:1 5:false] -gorptest: 15:25:31.299243 select i.Id InvoiceId, p.Id PersonId, i.Memo, p.FName from invoice_test i, person_test p where i.PersonId = p.Id [] -gorptest: 15:25:31.299417 drop table if exists "invoice_test"; [] -gorptest: 15:25:31.311197 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:31.323123 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:31.335042 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:31.349335 drop table if exists "person_test"; [] -gorptest: 15:25:31.362855 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:31.375226 drop table if exists "id_created_test"; [] -gorptest: 15:25:31.387419 drop table if exists "type_conv_test"; [] -gorptest: 15:25:31.399621 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:31.410999 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:31.422982 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:31.434888 drop table if exists "time_test"; [] -gorptest: 15:25:31.444959 drop table if exists "id_created_test"; [] ---- PASS: TestInvoicePersonView (0.29s) +2024/10/06 09:04:06 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:06.033529 drop table if exists "invoice_test"; [] +gorptest: 09:04:06.033841 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:06.033875 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:06.033903 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:06.033929 drop table if exists "person_test"; [] +gorptest: 09:04:06.033956 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:06.033982 drop table if exists "id_created_test"; [] +gorptest: 09:04:06.034008 drop table if exists "type_conv_test"; [] +gorptest: 09:04:06.034034 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:06.034060 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:06.034088 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:06.034114 drop table if exists "time_test"; [] +gorptest: 09:04:06.034160 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:06.051666 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:06.067682 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:06.077324 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:06.091676 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:06.103641 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:06.119667 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:06.138938 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:06.159580 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:06.179578 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:06.199590 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:06.219597 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:06.239631 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1728205446239609433 2:1728205446239609433 3:"bob" 4:"smith" 5:1] +gorptest: 09:04:06.257566 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:0 2:0 3:"xmas order" 4:1 5:false] +gorptest: 09:04:06.278998 select i.Id InvoiceId, p.Id PersonId, i.Memo, p.FName from invoice_test i, person_test p where i.PersonId = p.Id [] +gorptest: 09:04:06.279205 drop table if exists "invoice_test"; [] +gorptest: 09:04:06.397371 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:06.425914 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:06.478155 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:06.496209 drop table if exists "person_test"; [] +gorptest: 09:04:06.512821 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:06.521115 drop table if exists "id_created_test"; [] +gorptest: 09:04:06.529033 drop table if exists "type_conv_test"; [] +gorptest: 09:04:06.542166 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:06.558017 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:06.571011 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:06.576913 drop table if exists "time_test"; [] +gorptest: 09:04:06.584526 drop table if exists "id_created_test"; [] +--- PASS: TestInvoicePersonView (0.55s) === RUN TestQuoteTableNames -2025/11/08 15:25:31 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:31.445200 drop table if exists "invoice_test"; [] -gorptest: 15:25:31.445401 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:31.445426 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:31.445442 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:31.445459 drop table if exists "person_test"; [] -gorptest: 15:25:31.445475 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:31.445493 drop table if exists "id_created_test"; [] -gorptest: 15:25:31.445509 drop table if exists "type_conv_test"; [] -gorptest: 15:25:31.445525 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:31.445541 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:31.445560 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:31.445578 drop table if exists "time_test"; [] -gorptest: 15:25:31.445600 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:31.455395 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:31.467421 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:31.478750 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:31.492673 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:31.505342 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:31.517494 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:31.529177 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:31.540898 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:31.552960 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:31.564651 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:31.577318 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] ---- PASS: TestQuoteTableNames (0.27s) +2024/10/06 09:04:06 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:06.584790 drop table if exists "invoice_test"; [] +gorptest: 09:04:06.585042 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:06.585071 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:06.585092 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:06.585111 drop table if exists "person_test"; [] +gorptest: 09:04:06.585131 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:06.585150 drop table if exists "id_created_test"; [] +gorptest: 09:04:06.585168 drop table if exists "type_conv_test"; [] +gorptest: 09:04:06.585186 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:06.585204 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:06.585225 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:06.585243 drop table if exists "time_test"; [] +gorptest: 09:04:06.585279 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:06.591237 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:06.600470 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:06.606205 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:06.615197 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:06.621853 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:06.627222 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:06.632188 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:06.639776 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:06.650139 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:06.667666 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:06.684912 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +--- PASS: TestQuoteTableNames (0.26s) === RUN TestSelectTooManyCols -2025/11/08 15:25:31 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:31.719398 drop table if exists "invoice_test"; [] -gorptest: 15:25:31.719804 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:31.719831 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:31.719848 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:31.719864 drop table if exists "person_test"; [] -gorptest: 15:25:31.719880 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:31.719898 drop table if exists "id_created_test"; [] -gorptest: 15:25:31.719917 drop table if exists "type_conv_test"; [] -gorptest: 15:25:31.719933 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:31.719949 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:31.719968 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:31.719984 drop table if exists "time_test"; [] -gorptest: 15:25:31.720014 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:31.729271 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:31.738667 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:31.749052 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:31.761295 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:31.771397 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:31.781410 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:31.790635 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:31.800827 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:31.811081 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:31.821170 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:31.831325 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:31.838827 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1762615531838810546 2:1762615531838810546 3:"bob" 4:"smith" 5:1] -gorptest: 15:25:31.851225 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1762615531851214673 2:1762615531851214673 3:"jane" 4:"doe" 5:1] -gorptest: 15:25:31.863448 select "Id","Created","Updated","FName","LName","Version" from "person_test" where "Id"=?; [1:1] -gorptest: 15:25:31.863557 select "Id","Created","Updated","FName","LName","Version" from "person_test" where "Id"=?; [1:2] -gorptest: 15:25:31.863601 select * from person_test where Id=? [1:1] -gorptest: 15:25:31.863658 select * from person_test order by fname asc [] -gorptest: 15:25:31.863775 drop table if exists "invoice_test"; [] -gorptest: 15:25:31.872680 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:31.884670 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:31.896565 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:31.912136 drop table if exists "person_test"; [] -gorptest: 15:25:31.925244 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:31.937553 drop table if exists "id_created_test"; [] -gorptest: 15:25:31.949096 drop table if exists "type_conv_test"; [] -gorptest: 15:25:31.961333 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:31.972794 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:31.985596 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:31.996665 drop table if exists "time_test"; [] -gorptest: 15:25:32.007069 drop table if exists "id_created_test"; [] ---- PASS: TestSelectTooManyCols (0.29s) +2024/10/06 09:04:06 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:06.841846 drop table if exists "invoice_test"; [] +gorptest: 09:04:06.842081 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:06.842108 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:06.842129 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:06.842148 drop table if exists "person_test"; [] +gorptest: 09:04:06.842167 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:06.842185 drop table if exists "id_created_test"; [] +gorptest: 09:04:06.842203 drop table if exists "type_conv_test"; [] +gorptest: 09:04:06.842221 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:06.842239 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:06.842258 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:06.842276 drop table if exists "time_test"; [] +gorptest: 09:04:06.842301 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:06.849126 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:06.863743 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:06.879597 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:06.901854 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:06.914199 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:06.920065 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:07.013952 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:07.019768 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:07.025251 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:07.030275 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:07.036115 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:07.041784 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1728205447041762255 2:1728205447041762255 3:"bob" 4:"smith" 5:1] +gorptest: 09:04:07.046931 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1728205447046914182 2:1728205447046914182 3:"jane" 4:"doe" 5:1] +gorptest: 09:04:07.051971 select "Id","Created","Updated","FName","LName","Version" from "person_test" where "Id"=?; [1:1] +gorptest: 09:04:07.052081 select "Id","Created","Updated","FName","LName","Version" from "person_test" where "Id"=?; [1:2] +gorptest: 09:04:07.052181 select * from person_test where Id=? [1:1] +gorptest: 09:04:07.052264 select * from person_test order by fname asc [] +gorptest: 09:04:07.052353 drop table if exists "invoice_test"; [] +gorptest: 09:04:07.059515 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:07.064811 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:07.072148 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:07.077353 drop table if exists "person_test"; [] +gorptest: 09:04:07.082378 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:07.088727 drop table if exists "id_created_test"; [] +gorptest: 09:04:07.097811 drop table if exists "type_conv_test"; [] +gorptest: 09:04:07.114083 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:07.130346 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:07.145990 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:07.166077 drop table if exists "time_test"; [] +gorptest: 09:04:07.176424 drop table if exists "id_created_test"; [] +--- PASS: TestSelectTooManyCols (0.33s) === RUN TestSelectSingleVal -2025/11/08 15:25:32 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:32.007339 drop table if exists "invoice_test"; [] -gorptest: 15:25:32.007530 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:32.007554 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:32.007571 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:32.007591 drop table if exists "person_test"; [] -gorptest: 15:25:32.007616 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:32.007654 drop table if exists "id_created_test"; [] -gorptest: 15:25:32.007683 drop table if exists "type_conv_test"; [] -gorptest: 15:25:32.007700 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:32.007716 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:32.007745 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:32.007772 drop table if exists "time_test"; [] -gorptest: 15:25:32.007798 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:32.017135 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:32.029046 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:32.041106 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:32.054530 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:32.066610 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:32.079524 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:32.091450 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:32.102888 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:32.115107 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:32.127232 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:32.139472 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:32.149014 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1762615532148998588 2:1762615532148998588 3:"bob" 4:"smith" 5:1] -gorptest: 15:25:32.207937 select "Id","Created","Updated","FName","LName","Version" from "person_test" where "Id"=?; [1:1] -gorptest: 15:25:32.208052 select * from person_test where Id=? [1:1] -gorptest: 15:25:32.208116 select FName from person_test where Id=? [1:1] -gorptest: 15:25:32.208146 select * from person_test where Id=? [1:1] -gorptest: 15:25:32.208237 select * from person_test where 2<1 AND Id=? [1:1] -gorptest: 15:25:32.208290 select * from person_test where Id=? [1:-2222] -gorptest: 15:25:32.208362 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1762615532208329174 2:1762615532208329174 3:"bob" 4:"smith" 5:1] -gorptest: 15:25:32.214409 select * from person_test where Fname='bob' [] -gorptest: 15:25:32.214506 select * from person_test where Id=-123 [] -gorptest: 15:25:32.214539 select * from person_test where Id=-123 [] -gorptest: 15:25:32.214564 select * from person_test where Id=-123 [] -gorptest: 15:25:32.214610 select * from person_test where Id=-123 [] -gorptest: 15:25:32.214643 drop table if exists "invoice_test"; [] -gorptest: 15:25:32.219390 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:32.224475 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:32.229349 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:32.234593 drop table if exists "person_test"; [] -gorptest: 15:25:32.239492 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:32.244528 drop table if exists "id_created_test"; [] -gorptest: 15:25:32.249480 drop table if exists "type_conv_test"; [] -gorptest: 15:25:32.254136 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:32.263034 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:32.273200 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:32.283205 drop table if exists "time_test"; [] -gorptest: 15:25:32.293239 drop table if exists "id_created_test"; [] ---- PASS: TestSelectSingleVal (0.29s) +2024/10/06 09:04:07 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:07.176706 drop table if exists "invoice_test"; [] +gorptest: 09:04:07.176979 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:07.177010 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:07.177032 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:07.177054 drop table if exists "person_test"; [] +gorptest: 09:04:07.177074 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:07.177092 drop table if exists "id_created_test"; [] +gorptest: 09:04:07.177111 drop table if exists "type_conv_test"; [] +gorptest: 09:04:07.177129 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:07.177147 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:07.177166 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:07.177185 drop table if exists "time_test"; [] +gorptest: 09:04:07.177210 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:07.185774 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:07.198048 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:07.213668 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:07.235358 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:07.245864 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:07.257742 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:07.270030 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:07.281908 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:07.293876 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:07.305736 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:07.317607 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:07.332433 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1728205447332409826 2:1728205447332409826 3:"bob" 4:"smith" 5:1] +gorptest: 09:04:07.344199 select "Id","Created","Updated","FName","LName","Version" from "person_test" where "Id"=?; [1:1] +gorptest: 09:04:07.344337 select * from person_test where Id=? [1:1] +gorptest: 09:04:07.344439 select FName from person_test where Id=? [1:1] +gorptest: 09:04:07.344493 select * from person_test where Id=? [1:1] +gorptest: 09:04:07.344590 select * from person_test where 2<1 AND Id=? [1:1] +gorptest: 09:04:07.344669 select * from person_test where Id=? [1:-2222] +gorptest: 09:04:07.344742 insert into "person_test" ("Id","Created","Updated","FName","LName","Version") values (null,?,?,?,?,?); [1:1728205447344732057 2:1728205447344732057 3:"bob" 4:"smith" 5:1] +gorptest: 09:04:07.359670 select * from person_test where Fname='bob' [] +gorptest: 09:04:07.359915 select * from person_test where Id=-123 [] +gorptest: 09:04:07.359991 select * from person_test where Id=-123 [] +gorptest: 09:04:07.360037 select * from person_test where Id=-123 [] +gorptest: 09:04:07.360073 select * from person_test where Id=-123 [] +gorptest: 09:04:07.360109 drop table if exists "invoice_test"; [] +gorptest: 09:04:07.374636 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:07.391676 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:07.403273 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:07.417894 drop table if exists "person_test"; [] +gorptest: 09:04:07.426428 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:07.435899 drop table if exists "id_created_test"; [] +gorptest: 09:04:07.447951 drop table if exists "type_conv_test"; [] +gorptest: 09:04:07.463297 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:07.479598 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:07.507674 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:07.527676 drop table if exists "time_test"; [] +gorptest: 09:04:07.879680 drop table if exists "id_created_test"; [] +--- PASS: TestSelectSingleVal (0.70s) === RUN TestSelectAlias -2025/11/08 15:25:32 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:32.293475 drop table if exists "invoice_test"; [] -gorptest: 15:25:32.293663 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:32.293686 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:32.293703 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:32.293721 drop table if exists "person_test"; [] -gorptest: 15:25:32.293736 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:32.293755 drop table if exists "id_created_test"; [] -gorptest: 15:25:32.293770 drop table if exists "type_conv_test"; [] -gorptest: 15:25:32.293794 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:32.293810 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:32.293844 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:32.293867 drop table if exists "time_test"; [] -gorptest: 15:25:32.293906 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:32.303031 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:32.312748 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:32.322907 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:32.334667 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:32.344459 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:32.355004 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:32.364424 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:32.375284 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:32.387992 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:32.395138 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:32.405432 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:32.413518 insert into "id_created_test" ("Id","Created") values (null,?); [1:3] -gorptest: 15:25:32.424962 select * from id_created_test where Id=1 [] -gorptest: 15:25:32.425068 SELECT *, 1 AS external FROM id_created_test [] -gorptest: 15:25:32.425123 drop table if exists "invoice_test"; [] -gorptest: 15:25:32.435077 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:32.447390 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:32.459455 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:32.472428 drop table if exists "person_test"; [] -gorptest: 15:25:32.485721 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:32.497332 drop table if exists "id_created_test"; [] -gorptest: 15:25:32.511226 drop table if exists "type_conv_test"; [] -gorptest: 15:25:32.523265 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:32.534434 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:32.547512 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:32.558804 drop table if exists "time_test"; [] -gorptest: 15:25:32.569011 drop table if exists "id_created_test"; [] ---- PASS: TestSelectAlias (0.28s) +2024/10/06 09:04:07 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:07.879958 drop table if exists "invoice_test"; [] +gorptest: 09:04:07.880245 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:07.880277 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:07.880298 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:07.880318 drop table if exists "person_test"; [] +gorptest: 09:04:07.880336 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:07.880354 drop table if exists "id_created_test"; [] +gorptest: 09:04:07.880374 drop table if exists "type_conv_test"; [] +gorptest: 09:04:07.880392 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:07.880411 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:07.880431 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:07.880450 drop table if exists "time_test"; [] +gorptest: 09:04:07.880494 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:07.923637 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:07.943619 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:07.959559 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:07.975570 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:07.991559 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:08.011595 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:08.027577 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:08.051586 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:08.071596 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:08.091600 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:08.111721 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:08.135693 insert into "id_created_test" ("Id","Created") values (null,?); [1:3] +gorptest: 09:04:08.151639 select * from id_created_test where Id=1 [] +gorptest: 09:04:08.151815 SELECT *, 1 AS external FROM id_created_test [] +gorptest: 09:04:08.151928 drop table if exists "invoice_test"; [] +gorptest: 09:04:08.175644 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:08.195594 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:08.215587 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:08.235572 drop table if exists "person_test"; [] +gorptest: 09:04:08.255566 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:08.275573 drop table if exists "id_created_test"; [] +gorptest: 09:04:08.295574 drop table if exists "type_conv_test"; [] +gorptest: 09:04:08.315688 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:08.335658 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:08.359648 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:08.386835 drop table if exists "time_test"; [] +gorptest: 09:04:08.401633 drop table if exists "id_created_test"; [] +--- PASS: TestSelectAlias (0.52s) === RUN TestMysqlPanicIfDialectNotInitialized --- PASS: TestMysqlPanicIfDialectNotInitialized (0.00s) === RUN TestSingleColumnKeyDbReturnsZeroRowsUpdatedOnPKChange -2025/11/08 15:25:32 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:32.569271 drop table if exists "invoice_test"; [] -gorptest: 15:25:32.569452 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:32.569476 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:32.569493 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:32.569512 drop table if exists "person_test"; [] -gorptest: 15:25:32.569528 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:32.569547 drop table if exists "id_created_test"; [] -gorptest: 15:25:32.569562 drop table if exists "type_conv_test"; [] -gorptest: 15:25:32.569582 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:32.569598 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:32.569617 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:32.569633 drop table if exists "time_test"; [] -gorptest: 15:25:32.569658 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:32.578956 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:32.591330 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:32.602992 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:32.617362 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:32.628471 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:32.641325 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:32.653157 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:32.664947 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:32.677008 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:32.688622 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:32.700575 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:32.711573 drop table if exists "invoice_test"; [] -gorptest: 15:25:32.719072 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:32.729153 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:32.738786 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:32.751485 drop table if exists "person_test"; [] -gorptest: 15:25:32.760772 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:32.771646 drop table if exists "id_created_test"; [] -gorptest: 15:25:32.780942 drop table if exists "type_conv_test"; [] -gorptest: 15:25:32.791299 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:32.801083 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:32.810610 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:32.821357 drop table if exists "time_test"; [] -gorptest: 15:25:32.830681 drop table if exists "id_created_test"; [] -gorptest: 15:25:32.830728 drop table if exists "single_column_table"; [] -gorptest: 15:25:32.830757 create table if not exists "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:32.841366 create table if not exists "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:32.851712 create table if not exists "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:32.861104 create table if not exists "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:32.873296 create table if not exists "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:32.882692 create table if not exists "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:32.892905 create table if not exists "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:32.902775 create table if not exists "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:32.912822 create table if not exists "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:32.922784 create table if not exists "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:32.932785 create table if not exists "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:32.942881 create table if not exists "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:32.951351 create table if not exists "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer, "External" integer) ; [] -gorptest: 15:25:32.951398 create table if not exists "single_column_table" ("SomeId" varchar(255) not null primary key) ; [] -gorptest: 15:25:32.964962 delete from "invoice_test"; [] -gorptest: 15:25:32.974975 delete from "invoice_tag_test"; [] -gorptest: 15:25:32.985813 delete from "alias_trans_field_test"; [] -gorptest: 15:25:32.994718 delete from "invoice_override_test"; [] -gorptest: 15:25:33.006766 delete from "person_test"; [] -gorptest: 15:25:33.017085 delete from "ignored_column_test"; [] -gorptest: 15:25:33.027428 delete from "id_created_test"; [] -gorptest: 15:25:33.036994 delete from "type_conv_test"; [] -gorptest: 15:25:33.047136 delete from "embedded_struct_test"; [] -gorptest: 15:25:33.057459 delete from "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:33.067546 delete from "embedded_autoincr_test"; [] -gorptest: 15:25:33.076647 delete from "time_test"; [] -gorptest: 15:25:33.084742 delete from "id_created_test"; [] -gorptest: 15:25:33.094806 delete from "single_column_table"; [] -gorptest: 15:25:33.119272 update "single_column_table" set "SomeId"=? where "SomeId"=?; [1:"A Unique Id String" 2:"A Unique Id String"] -gorptest: 15:25:33.119378 drop table if exists "invoice_test"; [] -gorptest: 15:25:33.125040 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:33.130456 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:33.138795 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:33.530724 drop table if exists "person_test"; [] -gorptest: 15:25:33.795975 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:33.801551 drop table if exists "id_created_test"; [] -gorptest: 15:25:33.806890 drop table if exists "type_conv_test"; [] -gorptest: 15:25:33.812083 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:33.816942 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:33.821950 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:33.826657 drop table if exists "time_test"; [] -gorptest: 15:25:33.831631 drop table if exists "id_created_test"; [] -gorptest: 15:25:33.831704 drop table if exists "single_column_table"; [] ---- PASS: TestSingleColumnKeyDbReturnsZeroRowsUpdatedOnPKChange (1.27s) +2024/10/06 09:04:08 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:08.401958 drop table if exists "invoice_test"; [] +gorptest: 09:04:08.402256 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:08.402298 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:08.402347 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:08.402388 drop table if exists "person_test"; [] +gorptest: 09:04:08.402419 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:08.402445 drop table if exists "id_created_test"; [] +gorptest: 09:04:08.402471 drop table if exists "type_conv_test"; [] +gorptest: 09:04:08.402495 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:08.402521 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:08.402547 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:08.402573 drop table if exists "time_test"; [] +gorptest: 09:04:08.402617 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:08.409274 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:08.418709 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:08.432958 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:08.445035 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:08.456882 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:08.464687 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:08.487655 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:08.502497 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:08.519625 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:08.535609 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:08.555654 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:08.571634 drop table if exists "invoice_test"; [] +gorptest: 09:04:08.587597 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:08.607595 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:08.691641 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:08.707602 drop table if exists "person_test"; [] +gorptest: 09:04:08.723606 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:08.743625 drop table if exists "id_created_test"; [] +gorptest: 09:04:08.763590 drop table if exists "type_conv_test"; [] +gorptest: 09:04:08.779579 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:08.799582 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:08.819570 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:08.835573 drop table if exists "time_test"; [] +gorptest: 09:04:08.855615 drop table if exists "id_created_test"; [] +gorptest: 09:04:08.855690 drop table if exists "single_column_table"; [] +gorptest: 09:04:08.855731 create table if not exists "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:08.875655 create table if not exists "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:08.899620 create table if not exists "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:08.919611 create table if not exists "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:08.935644 create table if not exists "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:08.947814 create table if not exists "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:08.956634 create table if not exists "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:08.979247 create table if not exists "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:08.995648 create table if not exists "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:09.011487 create table if not exists "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:09.055624 create table if not exists "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:09.069234 create table if not exists "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:09.075799 create table if not exists "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer, "External" integer) ; [] +gorptest: 09:04:09.075865 create table if not exists "single_column_table" ("SomeId" varchar(255) not null primary key) ; [] +gorptest: 09:04:09.082742 delete from "invoice_test"; [] +gorptest: 09:04:09.087217 delete from "invoice_tag_test"; [] +gorptest: 09:04:09.094082 delete from "alias_trans_field_test"; [] +gorptest: 09:04:09.100448 delete from "invoice_override_test"; [] +gorptest: 09:04:09.105540 delete from "person_test"; [] +gorptest: 09:04:09.116278 delete from "ignored_column_test"; [] +gorptest: 09:04:09.120910 delete from "id_created_test"; [] +gorptest: 09:04:09.125288 delete from "type_conv_test"; [] +gorptest: 09:04:09.130437 delete from "embedded_struct_test"; [] +gorptest: 09:04:09.135291 delete from "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:09.139352 delete from "embedded_autoincr_test"; [] +gorptest: 09:04:09.143387 delete from "time_test"; [] +gorptest: 09:04:09.147379 delete from "id_created_test"; [] +gorptest: 09:04:09.152532 delete from "single_column_table"; [] +gorptest: 09:04:09.159292 update "single_column_table" set "SomeId"=? where "SomeId"=?; [1:"A Unique Id String" 2:"A Unique Id String"] +gorptest: 09:04:09.159402 drop table if exists "invoice_test"; [] +gorptest: 09:04:09.163889 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:09.168352 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:09.177247 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:09.191113 drop table if exists "person_test"; [] +gorptest: 09:04:09.202707 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:09.215423 drop table if exists "id_created_test"; [] +gorptest: 09:04:09.231411 drop table if exists "type_conv_test"; [] +gorptest: 09:04:09.243217 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:09.255144 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:09.271564 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:09.295634 drop table if exists "time_test"; [] +gorptest: 09:04:09.300920 drop table if exists "id_created_test"; [] +gorptest: 09:04:09.300978 drop table if exists "single_column_table"; [] +--- PASS: TestSingleColumnKeyDbReturnsZeroRowsUpdatedOnPKChange (0.91s) === RUN TestPrepare -2025/11/08 15:25:33 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 -gorptest: 15:25:33.837940 drop table if exists "invoice_test"; [] -gorptest: 15:25:33.838129 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:33.838154 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:33.838171 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:33.838187 drop table if exists "person_test"; [] -gorptest: 15:25:33.838206 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:33.838223 drop table if exists "id_created_test"; [] -gorptest: 15:25:33.838241 drop table if exists "type_conv_test"; [] -gorptest: 15:25:33.838257 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:33.838276 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:33.838292 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:33.838308 drop table if exists "time_test"; [] -gorptest: 15:25:33.838329 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:33.843226 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] -gorptest: 15:25:33.848613 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] -gorptest: 15:25:33.853760 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] -gorptest: 15:25:33.858983 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] -gorptest: 15:25:33.864051 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:33.869215 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] -gorptest: 15:25:33.879366 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] -gorptest: 15:25:33.891609 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] -gorptest: 15:25:33.903908 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] -gorptest: 15:25:33.915472 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] -gorptest: 15:25:33.927752 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] -gorptest: 15:25:33.938988 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:100 2:200 3:"prepare-foo" 4:0 5:false] -gorptest: 15:25:33.947974 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:100 2:200 3:"prepare-bar" 4:0 5:false] -gorptest: 15:25:33.955959 UPDATE invoice_test SET Memo=? WHERE Id=? [1:] -gorptest: 15:25:33.964273 SELECT * from invoice_test WHERE Memo='prepare-baz' [] -gorptest: 15:25:33.964387 begin; [] -gorptest: 15:25:33.964432 UPDATE invoice_test SET IsPaid=? WHERE Id=? [1:] -gorptest: 15:25:33.964532 SELECT * from invoice_test WHERE IsPaid=? [1:true] -gorptest: 15:25:33.964891 SELECT * from invoice_test WHERE IsPaid=? [1:true] -gorptest: 15:25:33.964953 commit; [] -gorptest: 15:25:33.971653 SELECT * from invoice_test WHERE IsPaid=? [1:true] -gorptest: 15:25:33.971752 drop table if exists "invoice_test"; [] -gorptest: 15:25:33.981257 drop table if exists "invoice_tag_test"; [] -gorptest: 15:25:33.993313 drop table if exists "alias_trans_field_test"; [] -gorptest: 15:25:34.005349 drop table if exists "invoice_override_test"; [] -gorptest: 15:25:34.023554 drop table if exists "person_test"; [] -gorptest: 15:25:34.040013 drop table if exists "ignored_column_test"; [] -gorptest: 15:25:34.055335 drop table if exists "id_created_test"; [] -gorptest: 15:25:34.071831 drop table if exists "type_conv_test"; [] -gorptest: 15:25:34.087348 drop table if exists "embedded_struct_test"; [] -gorptest: 15:25:34.103273 drop table if exists "embedded_struct_before_autoincr_test"; [] -gorptest: 15:25:34.119047 drop table if exists "embedded_autoincr_test"; [] -gorptest: 15:25:34.134841 drop table if exists "time_test"; [] -gorptest: 15:25:34.151148 drop table if exists "id_created_test"; [] ---- PASS: TestPrepare (0.31s) +2024/10/06 09:04:09 Warning: Automatic mapping of Version struct members to version columns (see optimistic locking) will be deprecated in next version (V2) See: https://github.com/go-gorp/gorp/pull/214 +gorptest: 09:04:09.311247 drop table if exists "invoice_test"; [] +gorptest: 09:04:09.311809 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:09.311873 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:09.311907 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:09.311931 drop table if exists "person_test"; [] +gorptest: 09:04:09.311952 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:09.311971 drop table if exists "id_created_test"; [] +gorptest: 09:04:09.311991 drop table if exists "type_conv_test"; [] +gorptest: 09:04:09.312011 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:09.312032 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:09.312064 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:09.312089 drop table if exists "time_test"; [] +gorptest: 09:04:09.312118 create table "invoice_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:09.321360 create table "invoice_tag_test" ("myid" integer not null primary key autoincrement, "myCreated" integer, "date_updated" integer, "Memo" varchar(255), "person_id" integer, "is_Paid" integer) ; [] +gorptest: 09:04:09.334113 create table "alias_trans_field_test" ("id" integer not null primary key autoincrement, "bar" varchar(255)) ; [] +gorptest: 09:04:09.346020 create table "invoice_override_test" ("Id" varchar(255) not null primary key, "Created" integer, "Updated" integer, "Memo" varchar(255), "PersonId" integer, "IsPaid" integer) ; [] +gorptest: 09:04:09.358889 create table "person_test" ("Id" integer not null primary key autoincrement, "Created" integer, "Updated" integer, "FName" varchar(255), "LName" varchar(255), "Version" integer) ; [] +gorptest: 09:04:09.470284 create table "ignored_column_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:09.475745 create table "id_created_test" ("Id" integer not null primary key autoincrement, "Created" integer) ; [] +gorptest: 09:04:09.540367 create table "type_conv_test" ("Id" integer not null primary key autoincrement, "PersonJSON" varchar(255), "Name" varchar(255)) ; [] +gorptest: 09:04:09.545845 create table "embedded_struct_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255)) ; [] +gorptest: 09:04:09.565334 create table "embedded_struct_before_autoincr_test" ("FirstName" varchar(255), "LastName" varchar(255), "Id" integer not null primary key autoincrement) ; [] +gorptest: 09:04:09.582992 create table "embedded_autoincr_test" ("Id" integer not null primary key autoincrement, "FirstName" varchar(255), "LastName" varchar(255), "MiddleName" varchar(255)) ; [] +gorptest: 09:04:09.589932 create table "time_test" ("Id" integer not null primary key autoincrement, "Time" datetime) ; [] +gorptest: 09:04:09.600389 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:100 2:200 3:"prepare-foo" 4:0 5:false] +gorptest: 09:04:09.615665 insert into "invoice_test" ("Id","Created","Updated","Memo","PersonId","IsPaid") values (null,?,?,?,?,?); [1:100 2:200 3:"prepare-bar" 4:0 5:false] +gorptest: 09:04:09.627545 UPDATE invoice_test SET Memo=? WHERE Id=? [1:] +gorptest: 09:04:09.638781 SELECT * from invoice_test WHERE Memo='prepare-baz' [] +gorptest: 09:04:09.638953 begin; [] +gorptest: 09:04:09.638990 UPDATE invoice_test SET IsPaid=? WHERE Id=? [1:] +gorptest: 09:04:09.639106 SELECT * from invoice_test WHERE IsPaid=? [1:true] +gorptest: 09:04:09.639551 SELECT * from invoice_test WHERE IsPaid=? [1:true] +gorptest: 09:04:09.639655 commit; [] +gorptest: 09:04:09.649863 SELECT * from invoice_test WHERE IsPaid=? [1:true] +gorptest: 09:04:09.650036 drop table if exists "invoice_test"; [] +gorptest: 09:04:09.662600 drop table if exists "invoice_tag_test"; [] +gorptest: 09:04:09.672589 drop table if exists "alias_trans_field_test"; [] +gorptest: 09:04:09.681615 drop table if exists "invoice_override_test"; [] +gorptest: 09:04:09.692019 drop table if exists "person_test"; [] +gorptest: 09:04:09.699800 drop table if exists "ignored_column_test"; [] +gorptest: 09:04:09.708546 drop table if exists "id_created_test"; [] +gorptest: 09:04:09.715044 drop table if exists "type_conv_test"; [] +gorptest: 09:04:09.727559 drop table if exists "embedded_struct_test"; [] +gorptest: 09:04:09.735691 drop table if exists "embedded_struct_before_autoincr_test"; [] +gorptest: 09:04:09.748263 drop table if exists "embedded_autoincr_test"; [] +gorptest: 09:04:09.756460 drop table if exists "time_test"; [] +gorptest: 09:04:09.763280 drop table if exists "id_created_test"; [] +--- PASS: TestPrepare (0.45s) PASS -ok gopkg.in/gorp.v1 9.133s +ok gopkg.in/gorp.v1 11.642s create-stamp debian/debhelper-build-stamp dh_testroot -O--builddirectory=_build -O--buildsystem=golang dh_prep -O--builddirectory=_build -O--buildsystem=golang @@ -1820,12 +1856,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/18343/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/18343/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/19529 and its subdirectories -I: Current time: Sat Nov 8 03:25:37 -12 2025 -I: pbuilder-time-stamp: 1762615537 +I: removing directory /srv/workspace/pbuilder/18343 and its subdirectories +I: Current time: Sun Oct 6 23:04:14 +14 2024 +I: pbuilder-time-stamp: 1728205454