Mercurial > cgi-bin > hgweb.cgi > PassMan
diff src/main/kotlin/name/blackcap/passman/Database.kt @ 19:7d80cbcb67bb
add shlex-style splitter and tests
author | David Barts <n5jrn@me.com> |
---|---|
date | Sun, 30 Jun 2024 20:37:36 -0700 |
parents | 7a74ae668665 |
children | ea65ab890f66 |
line wrap: on
line diff
--- a/src/main/kotlin/name/blackcap/passman/Database.kt Tue Apr 04 20:38:52 2023 -0700 +++ b/src/main/kotlin/name/blackcap/passman/Database.kt Sun Jun 30 20:37:36 2024 -0700 @@ -52,10 +52,10 @@ private fun init(connection: Connection, masterPassword: CharArray): Encryption { try { connection.createStatement().use { stmt -> - stmt.executeUpdate("create table integers ( name string not null, value integer )") - stmt.executeUpdate("create table reals ( name string not null, value integer )") - stmt.executeUpdate("create table strings ( name string not null, value real )") - stmt.executeUpdate("create table blobs ( name string not null, value blob )") + stmt.executeUpdate("create table integers ( name text not null, value integer )") + stmt.executeUpdate("create table reals ( name text not null, value real )") + stmt.executeUpdate("create table strings ( name text not null, value text )") + stmt.executeUpdate("create table blobs ( name text not null, value blob )") stmt.executeUpdate( "create table passwords (" + "id integer not null primary key, " +