Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
2
20250331
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patryk Czarnik
20250331
Commits
94c047cc
Commit
94c047cc
authored
Apr 07, 2025
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sterownik SQLite
parent
650d3c69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
pom.xml
pom.xml
+7
-0
ModyfikacjaWTransakcji.java
src/main/java/bazy/zajecia/ModyfikacjaWTransakcji.java
+1
-0
No files found.
pom.xml
View file @
94c047cc
...
@@ -21,6 +21,12 @@
...
@@ -21,6 +21,12 @@
<version>
42.7.5
</version>
<version>
42.7.5
</version>
<scope>
runtime
</scope>
<scope>
runtime
</scope>
</dependency>
</dependency>
<dependency>
<groupId>
org.xerial
</groupId>
<artifactId>
sqlite-jdbc
</artifactId>
<version>
3.49.1.0
</version>
<scope>
runtime
</scope>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
\ No newline at end of file
src/main/java/bazy/zajecia/ModyfikacjaWTransakcji.java
View file @
94c047cc
...
@@ -14,6 +14,7 @@ public class ModyfikacjaWTransakcji {
...
@@ -14,6 +14,7 @@ public class ModyfikacjaWTransakcji {
PreparedStatement
avgStmt
=
c
.
prepareStatement
(
avgSql
);
PreparedStatement
avgStmt
=
c
.
prepareStatement
(
avgSql
);
c
.
setAutoCommit
(
false
);
c
.
setAutoCommit
(
false
);
// c.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ);
// weszliśmy w tryb transakcji, tzn. zmiany dokonywane w tej sesji nie będą zapisane w sposób trwały dopóki nie wykonamy polecenia COMMIT
// weszliśmy w tryb transakcji, tzn. zmiany dokonywane w tej sesji nie będą zapisane w sposób trwały dopóki nie wykonamy polecenia COMMIT
// zerwanie sesji bez zrobienia COMMIT powoduje utratę zmian
// zerwanie sesji bez zrobienia COMMIT powoduje utratę zmian
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment